Struct identity_account::updates::CreateServiceBuilder
source · pub struct CreateServiceBuilder<'account, C>where
C: SharedPtr<Client>,{ /* private fields */ }
Expand description
Create a new service on an identity.
Parameters
type_
: the type of the service, e.g."LinkedDomains"
, required.fragment
: the identifier of the service in the document, required.endpoint
: theServiceEndpoint
of the service, required.properties
: additional properties of the service, optional.
Implementations§
source§impl<'account, C> CreateServiceBuilder<'account, C>where
C: SharedPtr<Client>,
impl<'account, C> CreateServiceBuilder<'account, C>where C: SharedPtr<Client>,
pub fn fragment<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn type_<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn endpoint<VALUE: Into<ServiceEndpoint>>(self, value: VALUE) -> Self
pub fn properties<VALUE: Into<Object>>(self, value: VALUE) -> Self
pub fn new( account: &'account mut Account<C> ) -> CreateServiceBuilder<'account, C>where C: SharedPtr<Client>,
pub async fn apply(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<'account, C> !RefUnwindSafe for CreateServiceBuilder<'account, C>
impl<'account, C> Send for CreateServiceBuilder<'account, C>where C: Send,
impl<'account, C> Sync for CreateServiceBuilder<'account, C>where C: Sync,
impl<'account, C> Unpin for CreateServiceBuilder<'account, C>
impl<'account, C> !UnwindSafe for CreateServiceBuilder<'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