pub struct InviteViewBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> InviteViewBuilder<Empty, S>
impl<S: BosStr> InviteViewBuilder<Empty, S>
Source§impl<St, S: BosStr> InviteViewBuilder<St, S>
impl<St, S: BosStr> InviteViewBuilder<St, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> InviteViewBuilder<SetCreatedAt<St>, S>
pub fn created_at( self, value: impl Into<Datetime>, ) -> InviteViewBuilder<SetCreatedAt<St>, S>
Set the createdAt field (required)
Source§impl<St, S: BosStr> InviteViewBuilder<St, S>
impl<St, S: BosStr> InviteViewBuilder<St, S>
Source§impl<St: State, S: BosStr> InviteViewBuilder<St, S>
impl<St: State, S: BosStr> InviteViewBuilder<St, S>
Sourcepub fn expires_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn expires_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the expiresAt field (optional)
Sourcepub fn maybe_expires_at(self, value: Option<Datetime>) -> Self
pub fn maybe_expires_at(self, value: Option<Datetime>) -> Self
Set the expiresAt field to an Option value (optional)
Source§impl<St: State, S: BosStr> InviteViewBuilder<St, S>
impl<St: State, S: BosStr> InviteViewBuilder<St, S>
Sourcepub fn profile(self, value: impl Into<Option<ProfileViewBasic<S>>>) -> Self
pub fn profile(self, value: impl Into<Option<ProfileViewBasic<S>>>) -> Self
Set the profile field (optional)
Sourcepub fn maybe_profile(self, value: Option<ProfileViewBasic<S>>) -> Self
pub fn maybe_profile(self, value: Option<ProfileViewBasic<S>>) -> Self
Set the profile field to an Option value (optional)
Source§impl<St, S: BosStr> InviteViewBuilder<St, S>
impl<St, S: BosStr> InviteViewBuilder<St, S>
Source§impl<St: State, S: BosStr> InviteViewBuilder<St, S>
impl<St: State, S: BosStr> InviteViewBuilder<St, S>
Source§impl<St, S: BosStr> InviteViewBuilder<St, S>
impl<St, S: BosStr> InviteViewBuilder<St, S>
Sourcepub fn build(self) -> InviteView<S>
pub fn build(self) -> InviteView<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> InviteView<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> InviteView<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S = SmolStr> !Freeze for InviteViewBuilder<St, S>
impl<St, S> RefUnwindSafe for InviteViewBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for InviteViewBuilder<St, S>where
S: Send,
impl<St, S> Sync for InviteViewBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for InviteViewBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for InviteViewBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for InviteViewBuilder<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