Enum feattle_core::last_reload::LastReload [−][src]
pub enum LastReload {
Never,
NoData {
reload_date: DateTime<Utc>,
},
Data {
reload_date: DateTime<Utc>,
version: i32,
version_date: DateTime<Utc>,
},
}Store details of the last time the data was synchronized by calling
crate::Feattles::reload().
Variants
The data was never updated and all feattles carry their default values.
The reload finished with success, but no data was found. All feattle carry their default values.
The reload finished with success.
Implementations
impl LastReload[src]
impl LastReload[src]pub fn reload_date(self) -> Option<DateTime<Utc>>[src]
pub fn reload_date(self) -> Option<DateTime<Utc>>[src]Indicate when, if ever, a reload finished with success.
pub fn version(self) -> Option<i32>[src]
pub fn version(self) -> Option<i32>[src]Indicate which is, if any, the current data version. Note that the value 0 is used for
LastReload::NoData.
pub fn version_date(self) -> Option<DateTime<Utc>>[src]
pub fn version_date(self) -> Option<DateTime<Utc>>[src]Indicate when, if known, this data version was created.
Trait Implementations
impl Clone for LastReload[src]
impl Clone for LastReload[src]fn clone(&self) -> LastReload[src]
fn clone(&self) -> LastReload[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for LastReload[src]
impl Debug for LastReload[src]impl PartialEq<LastReload> for LastReload[src]
impl PartialEq<LastReload> for LastReload[src]fn eq(&self, other: &LastReload) -> bool[src]
fn eq(&self, other: &LastReload) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &LastReload) -> bool[src]
fn ne(&self, other: &LastReload) -> bool[src]This method tests for !=.
impl Serialize for LastReload[src]
impl Serialize for LastReload[src]impl Copy for LastReload[src]
impl Eq for LastReload[src]
impl StructuralEq for LastReload[src]
impl StructuralPartialEq for LastReload[src]
Auto Trait Implementations
impl RefUnwindSafe for LastReload
impl Send for LastReload
impl Sync for LastReload
impl Unpin for LastReload
impl UnwindSafe for LastReload
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more