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