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