pub struct CreateJoinLinkBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> CreateJoinLinkBuilder<Empty, S>
impl<S: BosStr> CreateJoinLinkBuilder<Empty, S>
Source§impl<St, S: BosStr> CreateJoinLinkBuilder<St, S>
impl<St, S: BosStr> CreateJoinLinkBuilder<St, S>
Sourcepub fn convo_id(
self,
value: impl Into<S>,
) -> CreateJoinLinkBuilder<SetConvoId<St>, S>
pub fn convo_id( self, value: impl Into<S>, ) -> CreateJoinLinkBuilder<SetConvoId<St>, S>
Set the convoId field (required)
Source§impl<St, S: BosStr> CreateJoinLinkBuilder<St, S>
impl<St, S: BosStr> CreateJoinLinkBuilder<St, S>
Sourcepub fn join_rule(
self,
value: impl Into<JoinRule<S>>,
) -> CreateJoinLinkBuilder<SetJoinRule<St>, S>
pub fn join_rule( self, value: impl Into<JoinRule<S>>, ) -> CreateJoinLinkBuilder<SetJoinRule<St>, S>
Set the joinRule field (required)
Source§impl<St: State, S: BosStr> CreateJoinLinkBuilder<St, S>
impl<St: State, S: BosStr> CreateJoinLinkBuilder<St, S>
Sourcepub fn require_approval(self, value: impl Into<Option<bool>>) -> Self
pub fn require_approval(self, value: impl Into<Option<bool>>) -> Self
Set the requireApproval field (optional)
Sourcepub fn maybe_require_approval(self, value: Option<bool>) -> Self
pub fn maybe_require_approval(self, value: Option<bool>) -> Self
Set the requireApproval field to an Option value (optional)
Source§impl<St, S: BosStr> CreateJoinLinkBuilder<St, S>
impl<St, S: BosStr> CreateJoinLinkBuilder<St, S>
Sourcepub fn build(self) -> CreateJoinLink<S>
pub fn build(self) -> CreateJoinLink<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> CreateJoinLink<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> CreateJoinLink<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S> Freeze for CreateJoinLinkBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for CreateJoinLinkBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for CreateJoinLinkBuilder<St, S>where
S: Send,
impl<St, S> Sync for CreateJoinLinkBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for CreateJoinLinkBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for CreateJoinLinkBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for CreateJoinLinkBuilder<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