pub struct UserMentionee {
pub type: Option<String>,
pub index: i32,
pub length: i32,
pub user_id: Option<String>,
pub is_self: Option<bool>,
}Expand description
UserMentionee : Mentioned target is user
Fields§
§type: Option<String>Mentioned target.
index: i32Index position of the user mention for a character in text, with the first character being at position 0.
length: i32The length of the text of the mentioned user. For a mention @example, 8 is the length.
user_id: Option<String>User ID of the mentioned user. Only included if mention.mentions[].type is user and the user consents to the LINE Official Account obtaining their user profile information.
is_self: Option<bool>Whether the mentioned user is the bot that receives the webhook.
Implementations§
Source§impl UserMentionee
impl UserMentionee
Trait Implementations§
Source§impl Clone for UserMentionee
impl Clone for UserMentionee
Source§fn clone(&self) -> UserMentionee
fn clone(&self) -> UserMentionee
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 UserMentionee
impl Debug for UserMentionee
Source§impl Default for UserMentionee
impl Default for UserMentionee
Source§fn default() -> UserMentionee
fn default() -> UserMentionee
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserMentionee
impl<'de> Deserialize<'de> for UserMentionee
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
Source§impl PartialEq for UserMentionee
impl PartialEq for UserMentionee
Source§impl Serialize for UserMentionee
impl Serialize for UserMentionee
impl StructuralPartialEq for UserMentionee
Auto Trait Implementations§
impl Freeze for UserMentionee
impl RefUnwindSafe for UserMentionee
impl Send for UserMentionee
impl Sync for UserMentionee
impl Unpin for UserMentionee
impl UnwindSafe for UserMentionee
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