#[repr(C)]pub struct Oracle {
pub version: u8,
pub padding_0: [u8; 7],
pub store: Pubkey,
pub authority: Pubkey,
pub min_oracle_ts: i64,
pub max_oracle_ts: i64,
pub min_oracle_slot: u64,
pub primary: PriceMap,
pub flags: OracleFlagContainer,
pub padding_1: [u8; 3],
pub reserved: [u8; 256],
}Expand description
Oracle Account.
Fields§
§version: u8§padding_0: [u8; 7]§store: Pubkey§min_oracle_ts: i64§max_oracle_ts: i64§min_oracle_slot: u64§primary: PriceMap§flags: OracleFlagContainer§padding_1: [u8; 3]§reserved: [u8; 256]Trait Implementations§
Source§impl AccountDeserialize for Oracle
impl AccountDeserialize for Oracle
Source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint account into a token
Account.Source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
Source§impl Discriminator for Oracle
impl Discriminator for Oracle
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
impl Copy for Oracle
impl Pod for Oracle
impl ZeroCopy for Oracle
Auto Trait Implementations§
impl Freeze for Oracle
impl RefUnwindSafe for Oracle
impl Send for Oracle
impl Sync for Oracle
impl Unpin for Oracle
impl UnwindSafe for Oracle
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.