pub struct PromoData {
pub proxy: bool,
pub expires: i32,
pub peer: Option<Peer>,
pub psa_type: Option<String>,
pub psa_message: Option<String>,
pub pending_suggestions: Vec<String>,
pub dismissed_suggestions: Vec<String>,
pub custom_pending_suggestion: Option<PendingSuggestion>,
pub chats: Vec<Chat>,
pub users: Vec<User>,
}Expand description
Generated from:
help.promoData#8a4d87a flags:# proxy:flags.0?true expires:int peer:flags.3?Peer psa_type:flags.1?string psa_message:flags.2?string pending_suggestions:Vector<string> dismissed_suggestions:Vector<string> custom_pending_suggestion:flags.4?PendingSuggestion chats:Vector<Chat> users:Vector<User> = help.PromoDataFields§
§proxy: bool§expires: i32§peer: Option<Peer>§psa_type: Option<String>§psa_message: Option<String>§pending_suggestions: Vec<String>§dismissed_suggestions: Vec<String>§custom_pending_suggestion: Option<PendingSuggestion>§chats: Vec<Chat>§users: Vec<User>Trait Implementations§
Source§impl Deserializable for PromoData
impl Deserializable for PromoData
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl Identifiable for PromoData
impl Identifiable for PromoData
Source§const CONSTRUCTOR_ID: u32 = 0x08a4d87a
const CONSTRUCTOR_ID: u32 = 0x08a4d87a
The constructor ID as specified in the TL schema.
Source§impl Serializable for PromoData
impl Serializable for PromoData
impl StructuralPartialEq for PromoData
Auto Trait Implementations§
impl Freeze for PromoData
impl RefUnwindSafe for PromoData
impl Send for PromoData
impl Sync for PromoData
impl Unpin for PromoData
impl UnsafeUnpin for PromoData
impl UnwindSafe for PromoData
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