pub struct DelegationBuilder { /* private fields */ }Expand description
A builder for Delegation.
Implementations§
Source§impl DelegationBuilder
impl DelegationBuilder
Sourcepub fn new(role: MetadataPath) -> Self
pub fn new(role: MetadataPath) -> Self
Create a new DelegationBuilder for a delegation named role.
Sourcepub fn threshold(self, threshold: u32) -> Self
pub fn threshold(self, threshold: u32) -> Self
The threshold number of signatures required for the delegation to be trusted.
Sourcepub fn delegate_path(self, path: TargetPath) -> Self
pub fn delegate_path(self, path: TargetPath) -> Self
Delegate path to this delegation.
Sourcepub fn build(self) -> Result<Delegation>
pub fn build(self) -> Result<Delegation>
Construct the Delegation.
Auto Trait Implementations§
impl Freeze for DelegationBuilder
impl RefUnwindSafe for DelegationBuilder
impl Send for DelegationBuilder
impl Sync for DelegationBuilder
impl Unpin for DelegationBuilder
impl UnsafeUnpin for DelegationBuilder
impl UnwindSafe for DelegationBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more