Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 47 fields pub default_p2p_contacts: bool, pub preload_featured_stickers: bool, pub revoke_pm_inbox: bool, pub blocked_mode: bool, pub force_try_ipv6: bool, pub date: i32, pub expires: i32, pub test_mode: bool, pub this_dc: i32, pub dc_options: Vec<DcOption>, pub dc_txt_domain_name: String, pub chat_size_max: i32, pub megagroup_size_max: i32, pub forwarded_count_max: i32, pub online_update_period_ms: i32, pub offline_blur_timeout_ms: i32, pub offline_idle_timeout_ms: i32, pub online_cloud_timeout_ms: i32, pub notify_cloud_delay_ms: i32, pub notify_default_delay_ms: i32, pub push_chat_period_ms: i32, pub push_chat_limit: i32, pub edit_time_limit: i32, pub revoke_time_limit: i32, pub revoke_pm_time_limit: i32, pub rating_e_decay: i32, pub stickers_recent_limit: i32, pub channels_read_media_period: i32, pub tmp_sessions: Option<i32>, pub call_receive_timeout_ms: i32, pub call_ring_timeout_ms: i32, pub call_connect_timeout_ms: i32, pub call_packet_timeout_ms: i32, pub me_url_prefix: String, pub autoupdate_url_prefix: Option<String>, pub gif_search_username: Option<String>, pub venue_search_username: Option<String>, pub img_search_username: Option<String>, pub static_maps_provider: Option<String>, pub caption_length_max: i32, pub message_length_max: i32, pub webfile_dc_id: i32, pub suggested_lang_code: Option<String>, pub lang_pack_version: Option<i32>, pub base_lang_pack_version: Option<i32>, pub reactions_default: Option<Reaction>, pub autologin_token: Option<String>,
}
Expand description

config

Generated from:

config#cc1a241e flags:# default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true force_try_ipv6:flags.14?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector<DcOption> dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int channels_read_media_period:int tmp_sessions:flags.0?int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int reactions_default:flags.15?Reaction autologin_token:flags.16?string = Config

Fields§

§default_p2p_contacts: bool§preload_featured_stickers: bool§revoke_pm_inbox: bool§blocked_mode: bool§force_try_ipv6: bool§date: i32§expires: i32§test_mode: bool§this_dc: i32§dc_options: Vec<DcOption>§dc_txt_domain_name: String§chat_size_max: i32§megagroup_size_max: i32§forwarded_count_max: i32§online_update_period_ms: i32§offline_blur_timeout_ms: i32§offline_idle_timeout_ms: i32§online_cloud_timeout_ms: i32§notify_cloud_delay_ms: i32§notify_default_delay_ms: i32§push_chat_period_ms: i32§push_chat_limit: i32§edit_time_limit: i32§revoke_time_limit: i32§revoke_pm_time_limit: i32§rating_e_decay: i32§stickers_recent_limit: i32§channels_read_media_period: i32§tmp_sessions: Option<i32>§call_receive_timeout_ms: i32§call_ring_timeout_ms: i32§call_connect_timeout_ms: i32§call_packet_timeout_ms: i32§me_url_prefix: String§autoupdate_url_prefix: Option<String>§gif_search_username: Option<String>§venue_search_username: Option<String>§img_search_username: Option<String>§static_maps_provider: Option<String>§caption_length_max: i32§message_length_max: i32§webfile_dc_id: i32§suggested_lang_code: Option<String>§lang_pack_version: Option<i32>§base_lang_pack_version: Option<i32>§reactions_default: Option<Reaction>§autologin_token: Option<String>

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

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 Config

Source§

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

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

impl Deserializable for Config

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<Config> for Config

Source§

fn from(x: Config) -> Self

Converts to this type from the input type.
Source§

impl Identifiable for Config

Source§

const CONSTRUCTOR_ID: u32 = 0xcc1a241e

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

impl PartialEq for Config

Source§

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

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<Config> for Config

Source§

type Error = Config

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

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

Performs the conversion.
Source§

impl StructuralPartialEq for Config

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.