pub struct SystemMessageDataMemberJoinBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> SystemMessageDataMemberJoinBuilder<Empty, S>
impl<S: BosStr> SystemMessageDataMemberJoinBuilder<Empty, S>
Source§impl<St: State, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
impl<St: State, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
Sourcepub fn approved_by(
self,
value: impl Into<Option<SystemMessageReferredUser<S>>>,
) -> Self
pub fn approved_by( self, value: impl Into<Option<SystemMessageReferredUser<S>>>, ) -> Self
Set the approvedBy field (optional)
Sourcepub fn maybe_approved_by(
self,
value: Option<SystemMessageReferredUser<S>>,
) -> Self
pub fn maybe_approved_by( self, value: Option<SystemMessageReferredUser<S>>, ) -> Self
Set the approvedBy field to an Option value (optional)
Source§impl<St, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
impl<St, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
Sourcepub fn member(
self,
value: impl Into<SystemMessageReferredUser<S>>,
) -> SystemMessageDataMemberJoinBuilder<SetMember<St>, S>
pub fn member( self, value: impl Into<SystemMessageReferredUser<S>>, ) -> SystemMessageDataMemberJoinBuilder<SetMember<St>, S>
Set the member field (required)
Source§impl<St, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
impl<St, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
Sourcepub fn role(
self,
value: impl Into<MemberRole<S>>,
) -> SystemMessageDataMemberJoinBuilder<SetRole<St>, S>
pub fn role( self, value: impl Into<MemberRole<S>>, ) -> SystemMessageDataMemberJoinBuilder<SetRole<St>, S>
Set the role field (required)
Source§impl<St, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
impl<St, S: BosStr> SystemMessageDataMemberJoinBuilder<St, S>
Sourcepub fn build(self) -> SystemMessageDataMemberJoin<S>
pub fn build(self) -> SystemMessageDataMemberJoin<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> SystemMessageDataMemberJoin<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> SystemMessageDataMemberJoin<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S> Freeze for SystemMessageDataMemberJoinBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for SystemMessageDataMemberJoinBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for SystemMessageDataMemberJoinBuilder<St, S>where
S: Send,
impl<St, S> Sync for SystemMessageDataMemberJoinBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for SystemMessageDataMemberJoinBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for SystemMessageDataMemberJoinBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for SystemMessageDataMemberJoinBuilder<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