pub struct Event { /* private fields */ }Expand description
Событие MOEX ISS (events).
Implementations§
Source§impl Event
impl Event
Sourcepub fn try_new(
id: i64,
tag: String,
title: String,
from: Option<NaiveDateTime>,
modified_at: NaiveDateTime,
) -> Result<Self, ParseEventError>
pub fn try_new( id: i64, tag: String, title: String, from: Option<NaiveDateTime>, modified_at: NaiveDateTime, ) -> Result<Self, ParseEventError>
Построить запись события из wire-значений ISS с валидацией.
Sourcepub fn from(&self) -> Option<NaiveDateTime>
pub fn from(&self) -> Option<NaiveDateTime>
Время начала/актуальности события (from), если задано.
Sourcepub fn modified_at(&self) -> NaiveDateTime
pub fn modified_at(&self) -> NaiveDateTime
Время изменения (modified_at).
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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