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