pub struct MarketData {
pub record: Vec<DataPoint>,
}Expand description
MarketData holds all recorded market events
Fields§
§record: Vec<DataPoint>Implementations§
Source§impl MarketData
impl MarketData
Sourcepub async fn get_data_for(symbol: &str, interval: &str, limit: u8) -> Self
pub async fn get_data_for(symbol: &str, interval: &str, limit: u8) -> Self
Sourcepub fn serialize(&self) -> MarketResults<String>
pub fn serialize(&self) -> MarketResults<String>
Serialize ‘MarketData’ into JSON String.
Trait Implementations§
Source§impl Debug for MarketData
impl Debug for MarketData
Source§impl<'de> Deserialize<'de> for MarketData
impl<'de> Deserialize<'de> for MarketData
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
Auto Trait Implementations§
impl Freeze for MarketData
impl RefUnwindSafe for MarketData
impl Send for MarketData
impl Sync for MarketData
impl Unpin for MarketData
impl UnsafeUnpin for MarketData
impl UnwindSafe for MarketData
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