pub struct StarsGiveawayOption {
pub extended: bool,
pub default: bool,
pub stars: i64,
pub yearly_boosts: i32,
pub store_product: Option<String>,
pub currency: String,
pub amount: i64,
pub winners: Vec<StarsGiveawayWinnersOption>,
}Expand description
Generated from:
starsGiveawayOption#94ce852a flags:# extended:flags.0?true default:flags.1?true stars:long yearly_boosts:int store_product:flags.2?string currency:string amount:long winners:Vector<StarsGiveawayWinnersOption> = StarsGiveawayOptionFields§
§extended: bool§default: bool§stars: i64§yearly_boosts: i32§store_product: Option<String>§currency: String§amount: i64§winners: Vec<StarsGiveawayWinnersOption>Trait Implementations§
Source§impl Clone for StarsGiveawayOption
impl Clone for StarsGiveawayOption
Source§fn clone(&self) -> StarsGiveawayOption
fn clone(&self) -> StarsGiveawayOption
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 StarsGiveawayOption
impl Debug for StarsGiveawayOption
Source§impl Deserializable for StarsGiveawayOption
impl Deserializable for StarsGiveawayOption
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<StarsGiveawayOption> for StarsGiveawayOption
impl From<StarsGiveawayOption> for StarsGiveawayOption
Source§fn from(x: StarsGiveawayOption) -> Self
fn from(x: StarsGiveawayOption) -> Self
Converts to this type from the input type.
Source§impl Identifiable for StarsGiveawayOption
impl Identifiable for StarsGiveawayOption
Source§const CONSTRUCTOR_ID: u32 = 0x94ce852a
const CONSTRUCTOR_ID: u32 = 0x94ce852a
The constructor ID as specified in the TL schema.
Source§impl PartialEq for StarsGiveawayOption
impl PartialEq for StarsGiveawayOption
Source§impl Serializable for StarsGiveawayOption
impl Serializable for StarsGiveawayOption
Source§impl TryFrom<StarsGiveawayOption> for StarsGiveawayOption
impl TryFrom<StarsGiveawayOption> for StarsGiveawayOption
Source§type Error = StarsGiveawayOption
type Error = StarsGiveawayOption
The type returned in the event of a conversion error.
impl StructuralPartialEq for StarsGiveawayOption
Auto Trait Implementations§
impl Freeze for StarsGiveawayOption
impl RefUnwindSafe for StarsGiveawayOption
impl Send for StarsGiveawayOption
impl Sync for StarsGiveawayOption
impl Unpin for StarsGiveawayOption
impl UnsafeUnpin for StarsGiveawayOption
impl UnwindSafe for StarsGiveawayOption
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