pub struct DelegationsBuilder { /* private fields */ }Expand description
A builder for Delegations.
Implementations§
Source§impl DelegationsBuilder
impl DelegationsBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new DelegationsBuilder.
Sourcepub fn role(self, delegation: Delegation) -> Self
pub fn role(self, delegation: Delegation) -> Self
Add a Delegation.
Sourcepub fn build(self) -> Result<Delegations>
pub fn build(self) -> Result<Delegations>
Construct a new Delegations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DelegationsBuilder
impl RefUnwindSafe for DelegationsBuilder
impl Send for DelegationsBuilder
impl Sync for DelegationsBuilder
impl Unpin for DelegationsBuilder
impl UnsafeUnpin for DelegationsBuilder
impl UnwindSafe for DelegationsBuilder
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