pub struct MentionBuilder { /* private fields */ }
Expand description
Builder for Mention
.
Implementations§
Source§impl MentionBuilder
impl MentionBuilder
Sourcepub fn with_mention_type<VALUE: Into<Option<MentionType>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_mention_type<VALUE: Into<Option<MentionType>>>( &mut self, value: VALUE, ) -> &mut Self
(Default: “user”) - тип меншна user|chat|channel|contact|all
Sourcepub fn with_mention_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
pub fn with_mention_id<VALUE: Into<Uuid>>(&mut self, value: VALUE) -> &mut Self
id меншна (uuid5)
Sourcepub fn with_mention_data<VALUE: Into<Option<MentionData>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn with_mention_data<VALUE: Into<Option<MentionData>>>( &mut self, value: VALUE, ) -> &mut Self
цель mention. Для mention_type “all” - null
Trait Implementations§
Source§impl Clone for MentionBuilder
impl Clone for MentionBuilder
Source§fn clone(&self) -> MentionBuilder
fn clone(&self) -> MentionBuilder
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 MentionBuilder
impl RefUnwindSafe for MentionBuilder
impl Send for MentionBuilder
impl Sync for MentionBuilder
impl Unpin for MentionBuilder
impl UnwindSafe for MentionBuilder
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