UserFullInfo

Struct UserFullInfo 

Source
pub struct UserFullInfo {
Show 20 fields pub personal_photo: Option<ChatPhoto>, pub photo: Option<ChatPhoto>, pub public_photo: Option<ChatPhoto>, pub block_list: Option<BlockList>, pub can_be_called: bool, pub supports_video_calls: bool, pub has_private_calls: bool, pub has_private_forwards: bool, pub has_restricted_voice_and_video_note_messages: bool, pub has_posted_to_profile_stories: bool, pub has_sponsored_messages_enabled: bool, pub need_phone_number_privacy_exception: bool, pub set_chat_background: bool, pub bio: Option<FormattedText>, pub birthdate: Option<Birthdate>, pub personal_chat_id: i64, pub premium_gift_options: Vec<PremiumPaymentOption>, pub group_in_common_count: i32, pub business_info: Option<BusinessInfo>, pub bot_info: Option<BotInfo>,
}
Expand description

Contains full information about a user

Fields§

§personal_photo: Option<ChatPhoto>

User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn’t returned in the list of user photos

§photo: Option<ChatPhoto>

User profile photo; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and personal_photo is null, then it is the same photo as in user.profile_photo and chat.photo

§public_photo: Option<ChatPhoto>

User profile photo visible if the main photo is hidden by privacy settings; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown. If non-null and both photo and personal_photo are null, then it is the same photo as in user.profile_photo and chat.photo. This photo isn’t returned in the list of user photos

§block_list: Option<BlockList>

Block list to which the user is added; may be null if none

§can_be_called: bool

True, if the user can be called

§supports_video_calls: bool

True, if a video call can be created with the user

§has_private_calls: bool

True, if the user can’t be called due to their privacy settings

§has_private_forwards: bool

True, if the user can’t be linked in forwarded messages due to their privacy settings

§has_restricted_voice_and_video_note_messages: bool

True, if voice and video notes can’t be sent or forwarded to the user

§has_posted_to_profile_stories: bool

True, if the user has posted to profile stories

§has_sponsored_messages_enabled: bool

True, if the user always enabled sponsored messages; known only for the current user

§need_phone_number_privacy_exception: bool

True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used

§set_chat_background: bool

True, if the user set chat background for both chat users and it wasn’t reverted yet

§bio: Option<FormattedText>

A short user bio; may be null for bots

§birthdate: Option<Birthdate>

Birthdate of the user; may be null if unknown

§personal_chat_id: i64

Identifier of the personal chat of the user; 0 if none

§premium_gift_options: Vec<PremiumPaymentOption>

The list of available options for gifting Telegram Premium to the user

§group_in_common_count: i32

Number of group chats where both the other user and the current user are a member; 0 for the current user

§business_info: Option<BusinessInfo>

Information about business settings for Telegram Business accounts; may be null if none

§bot_info: Option<BotInfo>

For bots, information about the bot; may be null if the user isn’t a bot

Trait Implementations§

Source§

impl Clone for UserFullInfo

Source§

fn clone(&self) -> UserFullInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UserFullInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for UserFullInfo

Source§

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 UserFullInfo

Source§

fn eq(&self, other: &UserFullInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for UserFullInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for UserFullInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,