pub struct OracleView {
pub feed: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
pub source: Option<String>,
pub status: Option<String>,
pub updated_at: Option<String>,
pub value: Option<String>,
}Fields§
§feed: Option<String>Feed is the trading pair this feed prices.
id: Option<String>ID is the feed’s own id, else its trading pair.
name: Option<String>Name is the feed’s display name — the trading pair, e.g. "LUX/USD".
source: Option<String>Source is the oracle network the feed originates from; "O-Chain" by default.
status: Option<String>Status is "active" for a listed feed.
updated_at: Option<String>UpdatedAt is the feed’s own timestamp, RFC 3339 UTC.
value: Option<String>Value is the feed’s price, verbatim as the registry carries it.
Implementations§
Source§impl OracleView
impl OracleView
pub fn new() -> OracleView
Trait Implementations§
Source§impl Clone for OracleView
impl Clone for OracleView
Source§fn clone(&self) -> OracleView
fn clone(&self) -> OracleView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OracleView
impl Debug for OracleView
Source§impl Default for OracleView
impl Default for OracleView
Source§fn default() -> OracleView
fn default() -> OracleView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OracleView
impl<'de> Deserialize<'de> for OracleView
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 PartialEq for OracleView
impl PartialEq for OracleView
Source§impl Serialize for OracleView
impl Serialize for OracleView
impl StructuralPartialEq for OracleView
Auto Trait Implementations§
impl Freeze for OracleView
impl RefUnwindSafe for OracleView
impl Send for OracleView
impl Sync for OracleView
impl Unpin for OracleView
impl UnsafeUnpin for OracleView
impl UnwindSafe for OracleView
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