pub struct LabeledPrice {
pub label: String,
pub amount: i64,
}Expand description
Fields§
§label: String§amount: i64Trait Implementations§
Source§impl Clone for LabeledPrice
impl Clone for LabeledPrice
Source§fn clone(&self) -> LabeledPrice
fn clone(&self) -> LabeledPrice
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 LabeledPrice
impl Debug for LabeledPrice
Source§impl Deserializable for LabeledPrice
impl Deserializable for LabeledPrice
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<LabeledPrice> for LabeledPrice
impl From<LabeledPrice> for LabeledPrice
Source§fn from(x: LabeledPrice) -> Self
fn from(x: LabeledPrice) -> Self
Converts to this type from the input type.
Source§impl Identifiable for LabeledPrice
impl Identifiable for LabeledPrice
Source§const CONSTRUCTOR_ID: u32 = 0xcb296bf8
const CONSTRUCTOR_ID: u32 = 0xcb296bf8
The constructor ID as specified in the TL schema.
Source§impl PartialEq for LabeledPrice
impl PartialEq for LabeledPrice
Source§impl Serializable for LabeledPrice
impl Serializable for LabeledPrice
Source§impl TryFrom<LabeledPrice> for LabeledPrice
impl TryFrom<LabeledPrice> for LabeledPrice
Source§type Error = LabeledPrice
type Error = LabeledPrice
The type returned in the event of a conversion error.
impl StructuralPartialEq for LabeledPrice
Auto Trait Implementations§
impl Freeze for LabeledPrice
impl RefUnwindSafe for LabeledPrice
impl Send for LabeledPrice
impl Sync for LabeledPrice
impl Unpin for LabeledPrice
impl UnsafeUnpin for LabeledPrice
impl UnwindSafe for LabeledPrice
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