pub struct Reminder {
pub minutes_before_start: i64,
}Fields§
§minutes_before_start: i64Minutes before the event start.
Implementations§
Source§impl Reminder
impl Reminder
pub fn from_minutes(minutes: i64) -> Self
pub fn from_human(input: &str) -> Result<Self, DurationError>
pub fn to_human(&self) -> String
Trait Implementations§
impl Copy for Reminder
Source§impl<'de> Deserialize<'de> for Reminder
impl<'de> Deserialize<'de> for Reminder
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Reminder
Source§impl Ord for Reminder
impl Ord for Reminder
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Reminder
impl PartialOrd for Reminder
impl StructuralPartialEq for Reminder
Auto Trait Implementations§
impl Freeze for Reminder
impl RefUnwindSafe for Reminder
impl Send for Reminder
impl Sync for Reminder
impl Unpin for Reminder
impl UnsafeUnpin for Reminder
impl UnwindSafe for Reminder
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.