pub struct ProfileViewBasicBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ProfileViewBasicBuilder<'a, Empty>
impl<'a> ProfileViewBasicBuilder<'a, Empty>
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Sourcepub fn associated(self, value: impl Into<Option<ProfileAssociated<'a>>>) -> Self
pub fn associated(self, value: impl Into<Option<ProfileAssociated<'a>>>) -> Self
Set the associated field (optional)
Sourcepub fn maybe_associated(self, value: Option<ProfileAssociated<'a>>) -> Self
pub fn maybe_associated(self, value: Option<ProfileAssociated<'a>>) -> Self
Set the associated field to an Option value (optional)
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Sourcepub fn created_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn created_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the createdAt field (optional)
Sourcepub fn maybe_created_at(self, value: Option<Datetime>) -> Self
pub fn maybe_created_at(self, value: Option<Datetime>) -> Self
Set the createdAt field to an Option value (optional)
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Source§impl<'a, S> ProfileViewBasicBuilder<'a, S>
impl<'a, S> ProfileViewBasicBuilder<'a, S>
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Sourcepub fn display_name(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn display_name(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the displayName field (optional)
Sourcepub fn maybe_display_name(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_display_name(self, value: Option<CowStr<'a>>) -> Self
Set the displayName field to an Option value (optional)
Source§impl<'a, S> ProfileViewBasicBuilder<'a, S>
impl<'a, S> ProfileViewBasicBuilder<'a, S>
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Sourcepub fn status(self, value: impl Into<Option<StatusView<'a>>>) -> Self
pub fn status(self, value: impl Into<Option<StatusView<'a>>>) -> Self
Set the status field (optional)
Sourcepub fn maybe_status(self, value: Option<StatusView<'a>>) -> Self
pub fn maybe_status(self, value: Option<StatusView<'a>>) -> Self
Set the status field to an Option value (optional)
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Sourcepub fn verification(
self,
value: impl Into<Option<VerificationState<'a>>>,
) -> Self
pub fn verification( self, value: impl Into<Option<VerificationState<'a>>>, ) -> Self
Set the verification field (optional)
Sourcepub fn maybe_verification(self, value: Option<VerificationState<'a>>) -> Self
pub fn maybe_verification(self, value: Option<VerificationState<'a>>) -> Self
Set the verification field to an Option value (optional)
Source§impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
impl<'a, S: State> ProfileViewBasicBuilder<'a, S>
Sourcepub fn viewer(self, value: impl Into<Option<ViewerState<'a>>>) -> Self
pub fn viewer(self, value: impl Into<Option<ViewerState<'a>>>) -> Self
Set the viewer field (optional)
Sourcepub fn maybe_viewer(self, value: Option<ViewerState<'a>>) -> Self
pub fn maybe_viewer(self, value: Option<ViewerState<'a>>) -> Self
Set the viewer field to an Option value (optional)
Source§impl<'a, S> ProfileViewBasicBuilder<'a, S>
impl<'a, S> ProfileViewBasicBuilder<'a, S>
Sourcepub fn build(self) -> ProfileViewBasic<'a>
pub fn build(self) -> ProfileViewBasic<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ProfileViewBasic<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ProfileViewBasic<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for ProfileViewBasicBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ProfileViewBasicBuilder<'a, S>
impl<'a, S> Send for ProfileViewBasicBuilder<'a, S>
impl<'a, S> Sync for ProfileViewBasicBuilder<'a, S>
impl<'a, S> Unpin for ProfileViewBasicBuilder<'a, S>
impl<'a, S> UnwindSafe for ProfileViewBasicBuilder<'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