Struct funniversaries::entities::anniversary::Anniversary
source · [−]pub struct Anniversary {
pub name: String,
pub count: i64,
pub unit: String,
pub date: DateTime<Utc>,
}
Fields
name: String
count: i64
unit: String
date: DateTime<Utc>
Implementations
sourceimpl Anniversary
impl Anniversary
pub fn new_seconds(count: i64, date: DateTime<Utc>) -> Anniversary
pub fn new_days(count: i64, date: DateTime<Utc>) -> Anniversary
pub fn new_weeks(count: i64, date: DateTime<Utc>) -> Anniversary
Trait Implementations
sourceimpl Clone for Anniversary
impl Clone for Anniversary
sourcefn clone(&self) -> Anniversary
fn clone(&self) -> Anniversary
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Anniversary
impl Debug for Anniversary
sourceimpl Serialize for Anniversary
impl Serialize for Anniversary
Auto Trait Implementations
impl RefUnwindSafe for Anniversary
impl Send for Anniversary
impl Sync for Anniversary
impl Unpin for Anniversary
impl UnwindSafe for Anniversary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more