pub struct CreateInviteCodeBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> CreateInviteCodeBuilder<'a, Empty>
impl<'a> CreateInviteCodeBuilder<'a, Empty>
Source§impl<'a, S: State> CreateInviteCodeBuilder<'a, S>
impl<'a, S: State> CreateInviteCodeBuilder<'a, S>
Sourcepub fn for_account(self, value: impl Into<Option<Did<'a>>>) -> Self
pub fn for_account(self, value: impl Into<Option<Did<'a>>>) -> Self
Set the forAccount field (optional)
Sourcepub fn maybe_for_account(self, value: Option<Did<'a>>) -> Self
pub fn maybe_for_account(self, value: Option<Did<'a>>) -> Self
Set the forAccount field to an Option value (optional)
Source§impl<'a, S> CreateInviteCodeBuilder<'a, S>
impl<'a, S> CreateInviteCodeBuilder<'a, S>
Sourcepub fn use_count(
self,
value: impl Into<i64>,
) -> CreateInviteCodeBuilder<'a, SetUseCount<S>>
pub fn use_count( self, value: impl Into<i64>, ) -> CreateInviteCodeBuilder<'a, SetUseCount<S>>
Set the useCount field (required)
Source§impl<'a, S> CreateInviteCodeBuilder<'a, S>
impl<'a, S> CreateInviteCodeBuilder<'a, S>
Sourcepub fn build(self) -> CreateInviteCode<'a>
pub fn build(self) -> CreateInviteCode<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> CreateInviteCode<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> CreateInviteCode<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for CreateInviteCodeBuilder<'a, S>
impl<'a, S> RefUnwindSafe for CreateInviteCodeBuilder<'a, S>
impl<'a, S> Send for CreateInviteCodeBuilder<'a, S>
impl<'a, S> Sync for CreateInviteCodeBuilder<'a, S>
impl<'a, S> Unpin for CreateInviteCodeBuilder<'a, S>
impl<'a, S> UnwindSafe for CreateInviteCodeBuilder<'a, S>
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