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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
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