pub struct JoinLinkPreviewViewBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> JoinLinkPreviewViewBuilder<Empty, S>
impl<S: BosStr> JoinLinkPreviewViewBuilder<Empty, S>
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn code(
self,
value: impl Into<S>,
) -> JoinLinkPreviewViewBuilder<SetCode<St>, S>
pub fn code( self, value: impl Into<S>, ) -> JoinLinkPreviewViewBuilder<SetCode<St>, S>
Set the code field (required)
Source§impl<St: State, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St: State, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn convo_id(
self,
value: impl Into<S>,
) -> JoinLinkPreviewViewBuilder<SetConvoId<St>, S>
pub fn convo_id( self, value: impl Into<S>, ) -> JoinLinkPreviewViewBuilder<SetConvoId<St>, S>
Set the convoId field (required)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn join_rule(
self,
value: impl Into<JoinRule<S>>,
) -> JoinLinkPreviewViewBuilder<SetJoinRule<St>, S>
pub fn join_rule( self, value: impl Into<JoinRule<S>>, ) -> JoinLinkPreviewViewBuilder<SetJoinRule<St>, S>
Set the joinRule field (required)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn member_count(
self,
value: impl Into<i64>,
) -> JoinLinkPreviewViewBuilder<SetMemberCount<St>, S>
pub fn member_count( self, value: impl Into<i64>, ) -> JoinLinkPreviewViewBuilder<SetMemberCount<St>, S>
Set the memberCount field (required)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn member_limit(
self,
value: impl Into<i64>,
) -> JoinLinkPreviewViewBuilder<SetMemberLimit<St>, S>
pub fn member_limit( self, value: impl Into<i64>, ) -> JoinLinkPreviewViewBuilder<SetMemberLimit<St>, S>
Set the memberLimit field (required)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn name(
self,
value: impl Into<S>,
) -> JoinLinkPreviewViewBuilder<SetName<St>, S>
pub fn name( self, value: impl Into<S>, ) -> JoinLinkPreviewViewBuilder<SetName<St>, S>
Set the name field (required)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn owner(
self,
value: impl Into<ProfileViewBasic<S>>,
) -> JoinLinkPreviewViewBuilder<SetOwner<St>, S>
pub fn owner( self, value: impl Into<ProfileViewBasic<S>>, ) -> JoinLinkPreviewViewBuilder<SetOwner<St>, S>
Set the owner field (required)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn require_approval(
self,
value: impl Into<bool>,
) -> JoinLinkPreviewViewBuilder<SetRequireApproval<St>, S>
pub fn require_approval( self, value: impl Into<bool>, ) -> JoinLinkPreviewViewBuilder<SetRequireApproval<St>, S>
Set the requireApproval field (required)
Source§impl<St: State, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St: State, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn viewer(self, value: impl Into<Option<JoinLinkViewerState<S>>>) -> Self
pub fn viewer(self, value: impl Into<Option<JoinLinkViewerState<S>>>) -> Self
Set the viewer field (optional)
Sourcepub fn maybe_viewer(self, value: Option<JoinLinkViewerState<S>>) -> Self
pub fn maybe_viewer(self, value: Option<JoinLinkViewerState<S>>) -> Self
Set the viewer field to an Option value (optional)
Source§impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkPreviewViewBuilder<St, S>
Sourcepub fn build(self) -> JoinLinkPreviewView<S>
pub fn build(self) -> JoinLinkPreviewView<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> JoinLinkPreviewView<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> JoinLinkPreviewView<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S = SmolStr> !Freeze for JoinLinkPreviewViewBuilder<St, S>
impl<St, S> RefUnwindSafe for JoinLinkPreviewViewBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for JoinLinkPreviewViewBuilder<St, S>where
S: Send,
impl<St, S> Sync for JoinLinkPreviewViewBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for JoinLinkPreviewViewBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for JoinLinkPreviewViewBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for JoinLinkPreviewViewBuilder<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