pub struct ScopeConfiguration {
pub price_feed: Pubkey,
pub price_chain: [u16; 4],
pub twap_chain: [u16; 4],
}Fields§
§price_feed: Pubkey§price_chain: [u16; 4]§twap_chain: [u16; 4]Trait Implementations§
Source§impl BorshDeserialize for ScopeConfiguration
impl BorshDeserialize for ScopeConfiguration
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 ScopeConfiguration
impl BorshSerialize for ScopeConfiguration
Source§impl Clone for ScopeConfiguration
impl Clone for ScopeConfiguration
Source§fn clone(&self) -> ScopeConfiguration
fn clone(&self) -> ScopeConfiguration
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 ScopeConfiguration
impl Debug for ScopeConfiguration
Source§impl Default for ScopeConfiguration
impl Default for ScopeConfiguration
Source§fn default() -> ScopeConfiguration
fn default() -> ScopeConfiguration
Returns the “default value” for a type. Read more
impl Copy for ScopeConfiguration
Auto Trait Implementations§
impl Freeze for ScopeConfiguration
impl RefUnwindSafe for ScopeConfiguration
impl Send for ScopeConfiguration
impl Sync for ScopeConfiguration
impl Unpin for ScopeConfiguration
impl UnwindSafe for ScopeConfiguration
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