pub struct StrikeList {
pub symbol: String,
pub duration_minutes: u64,
pub quotes: Vec<StrikeQuote>,
pub captured_at: i64,
}Fields§
§symbol: String§duration_minutes: u64§quotes: Vec<StrikeQuote>§captured_at: i64Epoch segundos de la captura (hora del servidor).
Implementations§
Source§impl StrikeList
impl StrikeList
Sourcepub fn nearest(&self, price: f64) -> Option<&StrikeQuote>
pub fn nearest(&self, price: f64) -> Option<&StrikeQuote>
Quote más cercano a price; None si la lista está vacía.
Trait Implementations§
Source§impl Clone for StrikeList
impl Clone for StrikeList
Source§impl Debug for StrikeList
impl Debug for StrikeList
Source§impl<'de> Deserialize<'de> for StrikeList
impl<'de> Deserialize<'de> for StrikeList
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 StrikeList
impl PartialEq for StrikeList
Source§impl Serialize for StrikeList
impl Serialize for StrikeList
impl StructuralPartialEq for StrikeList
Auto Trait Implementations§
impl Forget for StrikeList
impl Freeze for StrikeList
impl RefUnwindSafe for StrikeList
impl Send for StrikeList
impl Sync for StrikeList
impl Unpin for StrikeList
impl UnsafeUnpin for StrikeList
impl UnwindSafe for StrikeList
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