pub struct InviteCodeBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> InviteCodeBuilder<Empty, S>
impl<S: BosStr> InviteCodeBuilder<Empty, S>
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn available(
self,
value: impl Into<i64>,
) -> InviteCodeBuilder<SetAvailable<St>, S>
pub fn available( self, value: impl Into<i64>, ) -> InviteCodeBuilder<SetAvailable<St>, S>
Set the available field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn code(self, value: impl Into<S>) -> InviteCodeBuilder<SetCode<St>, S>
pub fn code(self, value: impl Into<S>) -> InviteCodeBuilder<SetCode<St>, S>
Set the code field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> InviteCodeBuilder<SetCreatedAt<St>, S>
pub fn created_at( self, value: impl Into<Datetime>, ) -> InviteCodeBuilder<SetCreatedAt<St>, S>
Set the createdAt field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn created_by(
self,
value: impl Into<S>,
) -> InviteCodeBuilder<SetCreatedBy<St>, S>
pub fn created_by( self, value: impl Into<S>, ) -> InviteCodeBuilder<SetCreatedBy<St>, S>
Set the createdBy field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn disabled(
self,
value: impl Into<bool>,
) -> InviteCodeBuilder<SetDisabled<St>, S>
pub fn disabled( self, value: impl Into<bool>, ) -> InviteCodeBuilder<SetDisabled<St>, S>
Set the disabled field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn for_account(
self,
value: impl Into<S>,
) -> InviteCodeBuilder<SetForAccount<St>, S>
pub fn for_account( self, value: impl Into<S>, ) -> InviteCodeBuilder<SetForAccount<St>, S>
Set the forAccount field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn uses(
self,
value: impl Into<Vec<InviteCodeUse<S>>>,
) -> InviteCodeBuilder<SetUses<St>, S>
pub fn uses( self, value: impl Into<Vec<InviteCodeUse<S>>>, ) -> InviteCodeBuilder<SetUses<St>, S>
Set the uses field (required)
Source§impl<St, S: BosStr> InviteCodeBuilder<St, S>
impl<St, S: BosStr> InviteCodeBuilder<St, S>
Sourcepub fn build(self) -> InviteCode<S>
pub fn build(self) -> InviteCode<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> InviteCode<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> InviteCode<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S> Freeze for InviteCodeBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for InviteCodeBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for InviteCodeBuilder<St, S>where
S: Send,
impl<St, S> Sync for InviteCodeBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for InviteCodeBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for InviteCodeBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for InviteCodeBuilder<St, S>where
S: UnwindSafe + RefUnwindSafe,
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