#[non_exhaustive]pub struct UserPreferences {
pub visibility_days: u32,
pub min_elevation: f32,
pub max_elevation: f32,
pub min_duration: f32,
pub elevation_tolerance: f32,
pub duration_tolerance: f32,
pub notify_via_email: bool,
pub notify_via_text: bool,
}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.visibility_days: u32§min_elevation: f32§max_elevation: f32§min_duration: f32§elevation_tolerance: f32§duration_tolerance: f32§notify_via_email: bool§notify_via_text: boolTrait Implementations§
Source§impl Clone for UserPreferences
impl Clone for UserPreferences
Source§fn clone(&self) -> UserPreferences
fn clone(&self) -> UserPreferences
Returns a duplicate 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 UserPreferences
impl Debug for UserPreferences
Source§impl PartialEq for UserPreferences
impl PartialEq for UserPreferences
impl StructuralPartialEq for UserPreferences
Auto Trait Implementations§
impl Freeze for UserPreferences
impl RefUnwindSafe for UserPreferences
impl Send for UserPreferences
impl Sync for UserPreferences
impl Unpin for UserPreferences
impl UnwindSafe for UserPreferences
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