pub struct SymbolMetadata {Show 13 fields
pub pyth_lazer_id: PriceFeedId,
pub name: String,
pub symbol: String,
pub description: String,
pub asset_type: String,
pub exponent: i16,
pub cmc_id: Option<u32>,
pub funding_rate_interval: Option<Duration>,
pub min_publishers: u16,
pub min_channel: Channel,
pub state: SymbolState,
pub hermes_id: Option<String>,
pub quote_currency: Option<String>,
}
Fields§
§pyth_lazer_id: PriceFeedId
§name: String
§symbol: String
§description: String
§asset_type: String
§exponent: i16
§cmc_id: Option<u32>
§funding_rate_interval: Option<Duration>
§min_publishers: u16
§min_channel: Channel
§state: SymbolState
§hermes_id: Option<String>
§quote_currency: Option<String>
Trait Implementations§
Source§impl Clone for SymbolMetadata
impl Clone for SymbolMetadata
Source§fn clone(&self) -> SymbolMetadata
fn clone(&self) -> SymbolMetadata
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 SymbolMetadata
impl Debug for SymbolMetadata
Source§impl<'de> Deserialize<'de> for SymbolMetadata
impl<'de> Deserialize<'de> for SymbolMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SymbolMetadata
impl Hash for SymbolMetadata
Source§impl PartialEq for SymbolMetadata
impl PartialEq for SymbolMetadata
Source§impl Serialize for SymbolMetadata
impl Serialize for SymbolMetadata
impl Eq for SymbolMetadata
impl StructuralPartialEq for SymbolMetadata
Auto Trait Implementations§
impl Freeze for SymbolMetadata
impl RefUnwindSafe for SymbolMetadata
impl Send for SymbolMetadata
impl Sync for SymbolMetadata
impl Unpin for SymbolMetadata
impl UnwindSafe for SymbolMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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