pub struct GroupMentionDataBuilder { /* private fields */ }
Expand description
Builder for GroupMentionData
.
Implementations§
Source§impl GroupMentionDataBuilder
impl GroupMentionDataBuilder
Sourcepub fn with_group_chat_id<VALUE: Into<Uuid>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_group_chat_id<VALUE: Into<Uuid>>( &mut self, value: VALUE, ) -> &mut Self
id чата
Sourcepub fn with_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn with_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
отображаемое имя чата (uuid5)
Sourcepub fn build(&self) -> Result<GroupMentionData, GroupMentionDataBuilderError>
pub fn build(&self) -> Result<GroupMentionData, GroupMentionDataBuilderError>
Trait Implementations§
Source§impl Clone for GroupMentionDataBuilder
impl Clone for GroupMentionDataBuilder
Source§fn clone(&self) -> GroupMentionDataBuilder
fn clone(&self) -> GroupMentionDataBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GroupMentionDataBuilder
impl RefUnwindSafe for GroupMentionDataBuilder
impl Send for GroupMentionDataBuilder
impl Sync for GroupMentionDataBuilder
impl Unpin for GroupMentionDataBuilder
impl UnwindSafe for GroupMentionDataBuilder
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