pub struct PremiumPromo {
pub status_text: String,
pub status_entities: Vec<MessageEntity>,
pub video_sections: Vec<String>,
pub videos: Vec<Document>,
pub period_options: Vec<PremiumSubscriptionOption>,
pub users: Vec<User>,
}Expand description
Generated from:
help.premiumPromo#5334759c status_text:string status_entities:Vector<MessageEntity> video_sections:Vector<string> videos:Vector<Document> period_options:Vector<PremiumSubscriptionOption> users:Vector<User> = help.PremiumPromoFields§
§status_text: String§status_entities: Vec<MessageEntity>§video_sections: Vec<String>§videos: Vec<Document>§period_options: Vec<PremiumSubscriptionOption>§users: Vec<User>Trait Implementations§
Source§impl Clone for PremiumPromo
impl Clone for PremiumPromo
Source§fn clone(&self) -> PremiumPromo
fn clone(&self) -> PremiumPromo
Returns a duplicate 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 PremiumPromo
impl Debug for PremiumPromo
Source§impl Deserializable for PremiumPromo
impl Deserializable for PremiumPromo
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 From<PremiumPromo> for PremiumPromo
impl From<PremiumPromo> for PremiumPromo
Source§fn from(x: PremiumPromo) -> Self
fn from(x: PremiumPromo) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PremiumPromo
impl Identifiable for PremiumPromo
Source§const CONSTRUCTOR_ID: u32 = 0x5334759c
const CONSTRUCTOR_ID: u32 = 0x5334759c
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PremiumPromo
impl PartialEq for PremiumPromo
Source§impl Serializable for PremiumPromo
impl Serializable for PremiumPromo
Source§impl TryFrom<PremiumPromo> for PremiumPromo
impl TryFrom<PremiumPromo> for PremiumPromo
Source§type Error = PremiumPromo
type Error = PremiumPromo
The type returned in the event of a conversion error.
impl StructuralPartialEq for PremiumPromo
Auto Trait Implementations§
impl Freeze for PremiumPromo
impl RefUnwindSafe for PremiumPromo
impl Send for PremiumPromo
impl Sync for PremiumPromo
impl Unpin for PremiumPromo
impl UnsafeUnpin for PremiumPromo
impl UnwindSafe for PremiumPromo
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