pub struct MentionSubstitutionObject {
pub type: Option<String>,
pub mentionee: Box<MentionTarget>,
}
Expand description
MentionSubstitutionObject : An object representing a mention substitution.
Fields§
§type: Option<String>
Type of substitution object
mentionee: Box<MentionTarget>
Implementations§
Source§impl MentionSubstitutionObject
impl MentionSubstitutionObject
Sourcepub fn new(type: String, mentionee: MentionTarget) -> MentionSubstitutionObject
pub fn new(type: String, mentionee: MentionTarget) -> MentionSubstitutionObject
An object representing a mention substitution.
Trait Implementations§
Source§impl Clone for MentionSubstitutionObject
impl Clone for MentionSubstitutionObject
Source§fn clone(&self) -> MentionSubstitutionObject
fn clone(&self) -> MentionSubstitutionObject
Returns a duplicate 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 moreSource§impl Debug for MentionSubstitutionObject
impl Debug for MentionSubstitutionObject
Source§impl Default for MentionSubstitutionObject
impl Default for MentionSubstitutionObject
Source§fn default() -> MentionSubstitutionObject
fn default() -> MentionSubstitutionObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MentionSubstitutionObject
impl<'de> Deserialize<'de> for MentionSubstitutionObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MentionSubstitutionObject
Auto Trait Implementations§
impl Freeze for MentionSubstitutionObject
impl RefUnwindSafe for MentionSubstitutionObject
impl Send for MentionSubstitutionObject
impl Sync for MentionSubstitutionObject
impl Unpin for MentionSubstitutionObject
impl UnwindSafe for MentionSubstitutionObject
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