pub struct Oracle {
pub discriminator: [u8; 8],
pub whirlpool: Pubkey,
pub trade_enable_timestamp: u64,
pub adaptive_fee_constants: AdaptiveFeeConstants,
pub adaptive_fee_variables: AdaptiveFeeVariables,
pub reserved: [u8; 128],
}Fields§
§discriminator: [u8; 8]§whirlpool: Pubkey§trade_enable_timestamp: u64§adaptive_fee_constants: AdaptiveFeeConstants§adaptive_fee_variables: AdaptiveFeeVariables§reserved: [u8; 128]Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Oracle
impl BorshDeserialize for Oracle
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 Oracle
impl BorshSerialize for Oracle
impl Eq for Oracle
impl StructuralPartialEq 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 UnsafeUnpin 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