Struct identity_account::updates::CreateMethodBuilder
source · pub struct CreateMethodBuilder<'account, C>where
C: SharedPtr<Client>,{ /* private fields */ }
Expand description
Create a new method on an identity.
Parameters
scope
: the scope of the method, defaults toMethodScope::default
.fragment
: the identifier of the method in the document, required.content
: the key material to use for the method or key type to generate.
Implementations§
source§impl<'account, C> CreateMethodBuilder<'account, C>where
C: SharedPtr<Client>,
impl<'account, C> CreateMethodBuilder<'account, C>where C: SharedPtr<Client>,
pub fn scope<VALUE: Into<MethodScope>>(self, value: VALUE) -> Self
pub fn fragment<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn content<VALUE: Into<MethodContent>>(self, value: VALUE) -> Self
pub fn new( account: &'account mut Account<C> ) -> CreateMethodBuilder<'account, C>where C: SharedPtr<Client>,
pub async fn apply(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'account, C> !RefUnwindSafe for CreateMethodBuilder<'account, C>
impl<'account, C> Send for CreateMethodBuilder<'account, C>where C: Send,
impl<'account, C> Sync for CreateMethodBuilder<'account, C>where C: Sync,
impl<'account, C> Unpin for CreateMethodBuilder<'account, C>
impl<'account, C> !UnwindSafe for CreateMethodBuilder<'account, C>
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