pub struct MinuteRange {
pub name: Option<String>,
pub start_minutes_ago: Option<i32>,
pub end_minutes_ago: Option<i32>,
}Expand description
Fields§
§name: Option<String>§start_minutes_ago: Option<i32>§end_minutes_ago: Option<i32>Implementations§
Source§impl MinuteRange
impl MinuteRange
pub fn new( name: &str, start_minutes_ago: i32, end_minutes_ago: i32, ) -> MinuteRange
pub fn single_minute(time: i32) -> MinuteRange
Trait Implementations§
Source§impl Clone for MinuteRange
impl Clone for MinuteRange
Source§fn clone(&self) -> MinuteRange
fn clone(&self) -> MinuteRange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MinuteRange
impl Debug for MinuteRange
Source§impl Default for MinuteRange
impl Default for MinuteRange
Source§fn default() -> MinuteRange
fn default() -> MinuteRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MinuteRange
impl<'de> Deserialize<'de> for MinuteRange
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
Auto Trait Implementations§
impl Freeze for MinuteRange
impl RefUnwindSafe for MinuteRange
impl Send for MinuteRange
impl Sync for MinuteRange
impl Unpin for MinuteRange
impl UnsafeUnpin for MinuteRange
impl UnwindSafe for MinuteRange
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