pub struct LinkPreviewTypeUser {
pub photo: Option<ChatPhoto>,
pub is_bot: bool,
}Expand description
The link is a link to a user
Fields§
§photo: Option<ChatPhoto>Photo of the user; may be null if none
is_bot: boolTrue, if the user is a bot
Trait Implementations§
Source§impl Clone for LinkPreviewTypeUser
impl Clone for LinkPreviewTypeUser
Source§fn clone(&self) -> LinkPreviewTypeUser
fn clone(&self) -> LinkPreviewTypeUser
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 LinkPreviewTypeUser
impl Debug for LinkPreviewTypeUser
Source§impl<'de> Deserialize<'de> for LinkPreviewTypeUser
impl<'de> Deserialize<'de> for LinkPreviewTypeUser
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 LinkPreviewTypeUser
impl PartialEq for LinkPreviewTypeUser
Source§impl Serialize for LinkPreviewTypeUser
impl Serialize for LinkPreviewTypeUser
impl StructuralPartialEq for LinkPreviewTypeUser
Auto Trait Implementations§
impl Freeze for LinkPreviewTypeUser
impl RefUnwindSafe for LinkPreviewTypeUser
impl Send for LinkPreviewTypeUser
impl Sync for LinkPreviewTypeUser
impl Unpin for LinkPreviewTypeUser
impl UnsafeUnpin for LinkPreviewTypeUser
impl UnwindSafe for LinkPreviewTypeUser
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