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