Skip to main content

UserFull

Struct UserFull 

Source
pub struct UserFull {
Show 56 fields pub blocked: bool, pub phone_calls_available: bool, pub phone_calls_private: bool, pub can_pin_message: bool, pub has_scheduled: bool, pub video_calls_available: bool, pub voice_messages_forbidden: bool, pub translations_disabled: bool, pub stories_pinned_available: bool, pub blocked_my_stories_from: bool, pub wallpaper_overridden: bool, pub contact_require_premium: bool, pub read_dates_private: bool, pub sponsored_enabled: bool, pub can_view_revenue: bool, pub bot_can_manage_emoji_status: bool, pub display_gifts_button: bool, pub noforwards_my_enabled: bool, pub noforwards_peer_enabled: bool, pub id: i64, pub about: Option<String>, pub settings: PeerSettings, pub personal_photo: Option<Photo>, pub profile_photo: Option<Photo>, pub fallback_photo: Option<Photo>, pub notify_settings: PeerNotifySettings, pub bot_info: Option<BotInfo>, pub pinned_msg_id: Option<i32>, pub common_chats_count: i32, pub folder_id: Option<i32>, pub ttl_period: Option<i32>, pub theme: Option<ChatTheme>, pub private_forward_name: Option<String>, pub bot_group_admin_rights: Option<ChatAdminRights>, pub bot_broadcast_admin_rights: Option<ChatAdminRights>, pub wallpaper: Option<WallPaper>, pub stories: Option<PeerStories>, pub business_work_hours: Option<BusinessWorkHours>, pub business_location: Option<BusinessLocation>, pub business_greeting_message: Option<BusinessGreetingMessage>, pub business_away_message: Option<BusinessAwayMessage>, pub business_intro: Option<BusinessIntro>, pub birthday: Option<Birthday>, pub personal_channel_id: Option<i64>, pub personal_channel_message: Option<i32>, pub stargifts_count: Option<i32>, pub starref_program: Option<StarRefProgram>, pub bot_verification: Option<BotVerification>, pub send_paid_messages_stars: Option<i64>, pub disallowed_gifts: Option<DisallowedGiftsSettings>, pub stars_rating: Option<StarsRating>, pub stars_my_pending_rating: Option<StarsRating>, pub stars_my_pending_rating_date: Option<i32>, pub main_tab: Option<ProfileTab>, pub saved_music: Option<Document>, pub note: Option<TextWithEntities>,
}
Expand description

userFull

Generated from:

userFull#a02bc13e flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true stories_pinned_available:flags.26?true blocked_my_stories_from:flags.27?true wallpaper_overridden:flags.28?true contact_require_premium:flags.29?true read_dates_private:flags.30?true flags2:# sponsored_enabled:flags2.7?true can_view_revenue:flags2.9?true bot_can_manage_emoji_status:flags2.10?true display_gifts_button:flags2.16?true noforwards_my_enabled:flags2.23?true noforwards_peer_enabled:flags2.24?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme:flags.15?ChatTheme private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights wallpaper:flags.24?WallPaper stories:flags.25?PeerStories business_work_hours:flags2.0?BusinessWorkHours business_location:flags2.1?BusinessLocation business_greeting_message:flags2.2?BusinessGreetingMessage business_away_message:flags2.3?BusinessAwayMessage business_intro:flags2.4?BusinessIntro birthday:flags2.5?Birthday personal_channel_id:flags2.6?long personal_channel_message:flags2.6?int stargifts_count:flags2.8?int starref_program:flags2.11?StarRefProgram bot_verification:flags2.12?BotVerification send_paid_messages_stars:flags2.14?long disallowed_gifts:flags2.15?DisallowedGiftsSettings stars_rating:flags2.17?StarsRating stars_my_pending_rating:flags2.18?StarsRating stars_my_pending_rating_date:flags2.18?int main_tab:flags2.20?ProfileTab saved_music:flags2.21?Document note:flags2.22?TextWithEntities = UserFull

Fields§

§blocked: bool§phone_calls_available: bool§phone_calls_private: bool§can_pin_message: bool§has_scheduled: bool§video_calls_available: bool§voice_messages_forbidden: bool§translations_disabled: bool§stories_pinned_available: bool§blocked_my_stories_from: bool§wallpaper_overridden: bool§contact_require_premium: bool§read_dates_private: bool§sponsored_enabled: bool§can_view_revenue: bool§bot_can_manage_emoji_status: bool§display_gifts_button: bool§noforwards_my_enabled: bool§noforwards_peer_enabled: bool§id: i64§about: Option<String>§settings: PeerSettings§personal_photo: Option<Photo>§profile_photo: Option<Photo>§fallback_photo: Option<Photo>§notify_settings: PeerNotifySettings§bot_info: Option<BotInfo>§pinned_msg_id: Option<i32>§common_chats_count: i32§folder_id: Option<i32>§ttl_period: Option<i32>§theme: Option<ChatTheme>§private_forward_name: Option<String>§bot_group_admin_rights: Option<ChatAdminRights>§bot_broadcast_admin_rights: Option<ChatAdminRights>§wallpaper: Option<WallPaper>§stories: Option<PeerStories>§business_work_hours: Option<BusinessWorkHours>§business_location: Option<BusinessLocation>§business_greeting_message: Option<BusinessGreetingMessage>§business_away_message: Option<BusinessAwayMessage>§business_intro: Option<BusinessIntro>§birthday: Option<Birthday>§personal_channel_id: Option<i64>§personal_channel_message: Option<i32>§stargifts_count: Option<i32>§starref_program: Option<StarRefProgram>§bot_verification: Option<BotVerification>§send_paid_messages_stars: Option<i64>§disallowed_gifts: Option<DisallowedGiftsSettings>§stars_rating: Option<StarsRating>§stars_my_pending_rating: Option<StarsRating>§stars_my_pending_rating_date: Option<i32>§main_tab: Option<ProfileTab>§saved_music: Option<Document>§note: Option<TextWithEntities>

Trait Implementations§

Source§

impl Clone for UserFull

Source§

fn clone(&self) -> UserFull

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 UserFull

Source§

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

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

impl Deserializable for UserFull

Source§

fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>

Read Self from buf, advancing its position.
Source§

fn from_bytes(bytes: &[u8]) -> Result<Self>

Convenience: deserialize from a byte slice.
Source§

impl From<UserFull> for UserFull

Source§

fn from(x: UserFull) -> Self

Converts to this type from the input type.
Source§

impl Identifiable for UserFull

Source§

const CONSTRUCTOR_ID: u32 = 0xa02bc13e

The constructor ID as specified in the TL schema.
Source§

impl PartialEq for UserFull

Source§

fn eq(&self, other: &UserFull) -> 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 Serializable for UserFull

Source§

fn serialize(&self, buf: &mut impl Extend<u8>)

Appends the serialized form of self to buf.
Source§

fn to_bytes(&self) -> Vec<u8>

Convenience: allocate a fresh Vec<u8> and serialize into it.
Source§

impl TryFrom<UserFull> for UserFull

Source§

type Error = UserFull

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

fn try_from(v: UserFull) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for UserFull

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.