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