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