pub struct MessageMediaGiveaway {
pub only_new_subscribers: bool,
pub winners_are_visible: bool,
pub channels: Vec<i64>,
pub countries_iso2: Option<Vec<String>>,
pub prize_description: Option<String>,
pub quantity: i32,
pub months: Option<i32>,
pub stars: Option<i64>,
pub until_date: i32,
}Expand description
Generated from:
messageMediaGiveaway#aa073beb flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.2?true channels:Vector<long> countries_iso2:flags.1?Vector<string> prize_description:flags.3?string quantity:int months:flags.4?int stars:flags.5?long until_date:int = MessageMediaFields§
§only_new_subscribers: bool§winners_are_visible: bool§channels: Vec<i64>§countries_iso2: Option<Vec<String>>§prize_description: Option<String>§quantity: i32§months: Option<i32>§stars: Option<i64>§until_date: i32Trait Implementations§
Source§impl Clone for MessageMediaGiveaway
impl Clone for MessageMediaGiveaway
Source§fn clone(&self) -> MessageMediaGiveaway
fn clone(&self) -> MessageMediaGiveaway
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 MessageMediaGiveaway
impl Debug for MessageMediaGiveaway
Source§impl Deserializable for MessageMediaGiveaway
impl Deserializable for MessageMediaGiveaway
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<MessageMediaGiveaway> for MessageMedia
impl From<MessageMediaGiveaway> for MessageMedia
Source§fn from(x: MessageMediaGiveaway) -> Self
fn from(x: MessageMediaGiveaway) -> Self
Converts to this type from the input type.
Source§impl Identifiable for MessageMediaGiveaway
impl Identifiable for MessageMediaGiveaway
Source§const CONSTRUCTOR_ID: u32 = 0xaa073beb
const CONSTRUCTOR_ID: u32 = 0xaa073beb
The constructor ID as specified in the TL schema.
Source§impl PartialEq for MessageMediaGiveaway
impl PartialEq for MessageMediaGiveaway
Source§impl Serializable for MessageMediaGiveaway
impl Serializable for MessageMediaGiveaway
Source§impl TryFrom<MessageMedia> for MessageMediaGiveaway
impl TryFrom<MessageMedia> for MessageMediaGiveaway
Source§type Error = MessageMedia
type Error = MessageMedia
The type returned in the event of a conversion error.
impl StructuralPartialEq for MessageMediaGiveaway
Auto Trait Implementations§
impl Freeze for MessageMediaGiveaway
impl RefUnwindSafe for MessageMediaGiveaway
impl Send for MessageMediaGiveaway
impl Sync for MessageMediaGiveaway
impl Unpin for MessageMediaGiveaway
impl UnsafeUnpin for MessageMediaGiveaway
impl UnwindSafe for MessageMediaGiveaway
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