pub struct JoinLinkViewBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> JoinLinkViewBuilder<Empty, S>
impl<S: BosStr> JoinLinkViewBuilder<Empty, S>
Source§impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
Sourcepub fn code(self, value: impl Into<S>) -> JoinLinkViewBuilder<SetCode<St>, S>
pub fn code(self, value: impl Into<S>) -> JoinLinkViewBuilder<SetCode<St>, S>
Set the code field (required)
Source§impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> JoinLinkViewBuilder<SetCreatedAt<St>, S>
pub fn created_at( self, value: impl Into<Datetime>, ) -> JoinLinkViewBuilder<SetCreatedAt<St>, S>
Set the createdAt field (required)
Source§impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
Sourcepub fn enabled_status(
self,
value: impl Into<LinkEnabledStatus<S>>,
) -> JoinLinkViewBuilder<SetEnabledStatus<St>, S>
pub fn enabled_status( self, value: impl Into<LinkEnabledStatus<S>>, ) -> JoinLinkViewBuilder<SetEnabledStatus<St>, S>
Set the enabledStatus field (required)
Source§impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
Sourcepub fn join_rule(
self,
value: impl Into<JoinRule<S>>,
) -> JoinLinkViewBuilder<SetJoinRule<St>, S>
pub fn join_rule( self, value: impl Into<JoinRule<S>>, ) -> JoinLinkViewBuilder<SetJoinRule<St>, S>
Set the joinRule field (required)
Source§impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
Sourcepub fn require_approval(
self,
value: impl Into<bool>,
) -> JoinLinkViewBuilder<SetRequireApproval<St>, S>
pub fn require_approval( self, value: impl Into<bool>, ) -> JoinLinkViewBuilder<SetRequireApproval<St>, S>
Set the requireApproval field (required)
Source§impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
impl<St, S: BosStr> JoinLinkViewBuilder<St, S>
Sourcepub fn build(self) -> JoinLinkView<S>
pub fn build(self) -> JoinLinkView<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> JoinLinkView<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> JoinLinkView<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S> Freeze for JoinLinkViewBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for JoinLinkViewBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for JoinLinkViewBuilder<St, S>where
S: Send,
impl<St, S> Sync for JoinLinkViewBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for JoinLinkViewBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for JoinLinkViewBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for JoinLinkViewBuilder<St, S>where
S: UnwindSafe,
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