#[repr(C)]pub struct FeedConfig { /* private fields */ }
Expand description
Price Feed Config.
Implementations§
Source§impl FeedConfig
impl FeedConfig
Sourcepub fn new(feed: Pubkey) -> FeedConfig
pub fn new(feed: Pubkey) -> FeedConfig
Create a new feed config.
Sourcepub fn with_timestamp_adjustment(self, timestamp_adjustment: u32) -> FeedConfig
pub fn with_timestamp_adjustment(self, timestamp_adjustment: u32) -> FeedConfig
Change the timestamp adjustment.
Sourcepub fn timestamp_adjustment(&self) -> u32
pub fn timestamp_adjustment(&self) -> u32
Get timestamp adjustment.
Trait Implementations§
Source§impl Clone for FeedConfig
impl Clone for FeedConfig
Source§fn clone(&self) -> FeedConfig
fn clone(&self) -> FeedConfig
Returns a copy 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 FeedConfig
impl Debug for FeedConfig
Source§impl<'de> Deserialize<'de> for FeedConfig
impl<'de> Deserialize<'de> for FeedConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeedConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FeedConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FeedConfig
impl Display for FeedConfig
Source§impl PartialEq for FeedConfig
impl PartialEq for FeedConfig
Source§impl Serialize for FeedConfig
impl Serialize for FeedConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FeedConfig
impl Eq for FeedConfig
impl Pod for FeedConfig
impl StructuralPartialEq for FeedConfig
Auto Trait Implementations§
impl Freeze for FeedConfig
impl RefUnwindSafe for FeedConfig
impl Send for FeedConfig
impl Sync for FeedConfig
impl Unpin for FeedConfig
impl UnwindSafe for FeedConfig
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§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
.§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
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more