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