pub struct InputStorePaymentStarsGiveaway {
pub only_new_subscribers: bool,
pub winners_are_visible: bool,
pub stars: i64,
pub boost_peer: InputPeer,
pub additional_peers: Option<Vec<InputPeer>>,
pub countries_iso2: Option<Vec<String>>,
pub prize_description: Option<String>,
pub random_id: i64,
pub until_date: i32,
pub currency: String,
pub amount: i64,
pub users: i32,
}Expand description
inputStorePaymentStarsGiveaway
Generated from:
inputStorePaymentStarsGiveaway#751f08fa flags:# only_new_subscribers:flags.0?true winners_are_visible:flags.3?true stars:long boost_peer:InputPeer additional_peers:flags.1?Vector<InputPeer> countries_iso2:flags.2?Vector<string> prize_description:flags.4?string random_id:long until_date:int currency:string amount:long users:int = InputStorePaymentPurposeFields§
§only_new_subscribers: bool§winners_are_visible: bool§stars: i64§boost_peer: InputPeer§additional_peers: Option<Vec<InputPeer>>§countries_iso2: Option<Vec<String>>§prize_description: Option<String>§random_id: i64§until_date: i32§currency: String§amount: i64§users: i32Trait Implementations§
Source§impl Clone for InputStorePaymentStarsGiveaway
impl Clone for InputStorePaymentStarsGiveaway
Source§fn clone(&self) -> InputStorePaymentStarsGiveaway
fn clone(&self) -> InputStorePaymentStarsGiveaway
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 Deserializable for InputStorePaymentStarsGiveaway
impl Deserializable for InputStorePaymentStarsGiveaway
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<InputStorePaymentStarsGiveaway> for InputStorePaymentPurpose
impl From<InputStorePaymentStarsGiveaway> for InputStorePaymentPurpose
Source§fn from(x: InputStorePaymentStarsGiveaway) -> Self
fn from(x: InputStorePaymentStarsGiveaway) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputStorePaymentStarsGiveaway
impl Identifiable for InputStorePaymentStarsGiveaway
Source§const CONSTRUCTOR_ID: u32 = 0x751f08fa
const CONSTRUCTOR_ID: u32 = 0x751f08fa
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputStorePaymentStarsGiveaway
impl PartialEq for InputStorePaymentStarsGiveaway
Source§fn eq(&self, other: &InputStorePaymentStarsGiveaway) -> bool
fn eq(&self, other: &InputStorePaymentStarsGiveaway) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsGiveaway
impl TryFrom<InputStorePaymentPurpose> for InputStorePaymentStarsGiveaway
Source§type Error = InputStorePaymentPurpose
type Error = InputStorePaymentPurpose
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputStorePaymentStarsGiveaway
Auto Trait Implementations§
impl Freeze for InputStorePaymentStarsGiveaway
impl RefUnwindSafe for InputStorePaymentStarsGiveaway
impl Send for InputStorePaymentStarsGiveaway
impl Sync for InputStorePaymentStarsGiveaway
impl Unpin for InputStorePaymentStarsGiveaway
impl UnsafeUnpin for InputStorePaymentStarsGiveaway
impl UnwindSafe for InputStorePaymentStarsGiveaway
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