pub struct RepeatEvery { /* private fields */ }
Implementations§
Source§impl RepeatEvery
impl RepeatEvery
pub fn minutes(n: u32) -> Self
pub fn hours(n: u32) -> Self
pub fn days(n: u32) -> Self
pub fn weeks(n: u32) -> Self
pub fn months(n: u32) -> Self
pub fn years(n: u32) -> Self
Sourcepub fn add_to(&self, dt: &DateTime<Utc>) -> Option<DateTime<Utc>>
pub fn add_to(&self, dt: &DateTime<Utc>) -> Option<DateTime<Utc>>
dt + self
. None
if overflow happens.
Sourcepub fn checked_add(&self, rhs: &Self) -> Option<Self>
pub fn checked_add(&self, rhs: &Self) -> Option<Self>
rhs + self
. None
if overflow happens.
Trait Implementations§
Source§impl<'a> Add<&'a RepeatEvery> for RepeatEvery
impl<'a> Add<&'a RepeatEvery> for RepeatEvery
Add two struct
s.
Source§impl Clone for RepeatEvery
impl Clone for RepeatEvery
Source§fn clone(&self) -> RepeatEvery
fn clone(&self) -> RepeatEvery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RepeatEvery
impl Debug for RepeatEvery
Source§impl<'de> Deserialize<'de> for RepeatEvery
impl<'de> Deserialize<'de> for RepeatEvery
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 RepeatEvery
impl PartialEq for RepeatEvery
Source§impl Serialize for RepeatEvery
impl Serialize for RepeatEvery
impl Eq for RepeatEvery
impl StructuralPartialEq for RepeatEvery
Auto Trait Implementations§
impl Freeze for RepeatEvery
impl RefUnwindSafe for RepeatEvery
impl Send for RepeatEvery
impl Sync for RepeatEvery
impl Unpin for RepeatEvery
impl UnwindSafe for RepeatEvery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)