#[repr(C)]pub struct DatedPrice {
pub price: Price,
pub last_updated_slot: u64,
pub unix_timestamp: u64,
pub reserved: [u64; 2],
pub reserved2: [u16; 3],
pub index: u16,
}Fields§
§price: Price§last_updated_slot: u64§unix_timestamp: u64§reserved: [u64; 2]§reserved2: [u16; 3]§index: u16Trait Implementations§
Source§impl BorshDeserialize for DatedPricewhere
Price: BorshDeserialize,
u64: BorshDeserialize,
[u64; 2]: BorshDeserialize,
[u16; 3]: BorshDeserialize,
u16: BorshDeserialize,
impl BorshDeserialize for DatedPricewhere
Price: BorshDeserialize,
u64: BorshDeserialize,
[u64; 2]: BorshDeserialize,
[u16; 3]: BorshDeserialize,
u16: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for DatedPricewhere
Price: BorshSerialize,
u64: BorshSerialize,
[u64; 2]: BorshSerialize,
[u16; 3]: BorshSerialize,
u16: BorshSerialize,
impl BorshSerialize for DatedPricewhere
Price: BorshSerialize,
u64: BorshSerialize,
[u64; 2]: BorshSerialize,
[u16; 3]: BorshSerialize,
u16: BorshSerialize,
Source§impl Clone for DatedPrice
impl Clone for DatedPrice
Source§fn clone(&self) -> DatedPrice
fn clone(&self) -> DatedPrice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatedPrice
Source§impl Debug for DatedPrice
impl Debug for DatedPrice
Source§impl Default for DatedPrice
impl Default for DatedPrice
Source§fn default() -> DatedPrice
fn default() -> DatedPrice
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatedPrice
impl RefUnwindSafe for DatedPrice
impl Send for DatedPrice
impl Sync for DatedPrice
impl Unpin for DatedPrice
impl UnsafeUnpin for DatedPrice
impl UnwindSafe for DatedPrice
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