pub struct UserFullInfo { /* private fields */ }
Expand description
Contains full information about a user
Implementations§
Source§impl UserFullInfo
impl UserFullInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> UserFullInfoBuilder
pub fn photo(&self) -> &Option<ChatPhoto>
pub fn is_blocked(&self) -> bool
pub fn can_be_called(&self) -> bool
pub fn supports_video_calls(&self) -> bool
pub fn has_private_calls(&self) -> bool
pub fn has_private_forwards(&self) -> bool
pub fn need_phone_number_privacy_exception(&self) -> bool
pub fn bio(&self) -> &String
pub fn description(&self) -> &String
pub fn group_in_common_count(&self) -> i32
pub fn commands(&self) -> &Vec<BotCommand>
Trait Implementations§
Source§impl AsRef<UserFullInfo> for UserFullInfo
impl AsRef<UserFullInfo> for UserFullInfo
Source§fn as_ref(&self) -> &UserFullInfo
fn as_ref(&self) -> &UserFullInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for UserFullInfo
impl Clone for UserFullInfo
Source§fn clone(&self) -> UserFullInfo
fn clone(&self) -> UserFullInfo
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 moreSource§impl Debug for UserFullInfo
impl Debug for UserFullInfo
Source§impl Default for UserFullInfo
impl Default for UserFullInfo
Source§fn default() -> UserFullInfo
fn default() -> UserFullInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserFullInfo
impl<'de> Deserialize<'de> for UserFullInfo
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
Auto Trait Implementations§
impl Freeze for UserFullInfo
impl RefUnwindSafe for UserFullInfo
impl Send for UserFullInfo
impl Sync for UserFullInfo
impl Unpin for UserFullInfo
impl UnwindSafe for UserFullInfo
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