#[non_exhaustive]pub struct ServiceInterval {
pub km: Option<u32>,
pub months: Option<u32>,
}Expand description
How often a service item is due: by distance, time, or both, whichever
comes first. Each is None if not reported.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.km: Option<u32>Distance between services, in km.
months: Option<u32>Time between services, in months. 0 means no time-based interval.
Trait Implementations§
Source§impl Clone for ServiceInterval
impl Clone for ServiceInterval
impl Copy for ServiceInterval
Source§impl Debug for ServiceInterval
impl Debug for ServiceInterval
Source§impl Default for ServiceInterval
impl Default for ServiceInterval
Source§impl<'de> Deserialize<'de> for ServiceInterval
impl<'de> Deserialize<'de> for ServiceInterval
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
impl Eq for ServiceInterval
Source§impl PartialEq for ServiceInterval
impl PartialEq for ServiceInterval
Source§impl Serialize for ServiceInterval
impl Serialize for ServiceInterval
impl StructuralPartialEq for ServiceInterval
Auto Trait Implementations§
impl Forget for ServiceInterval
impl Freeze for ServiceInterval
impl Move for ServiceInterval
impl RefUnwindSafe for ServiceInterval
impl Send for ServiceInterval
impl Sync for ServiceInterval
impl Unpin for ServiceInterval
impl UnsafeUnpin for ServiceInterval
impl UnwindSafe for ServiceInterval
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,
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.