#[non_exhaustive]pub struct NearbyUnit {
pub postcode: String,
pub display: String,
pub distance_m: Option<f64>,
}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.postcode: String§display: String§distance_m: Option<f64>Trait Implementations§
Source§impl Clone for NearbyUnit
impl Clone for NearbyUnit
Source§impl Debug for NearbyUnit
impl Debug for NearbyUnit
Source§impl Default for NearbyUnit
impl Default for NearbyUnit
Source§impl PartialEq for NearbyUnit
impl PartialEq for NearbyUnit
impl StructuralPartialEq for NearbyUnit
Auto Trait Implementations§
impl Freeze for NearbyUnit
impl RefUnwindSafe for NearbyUnit
impl Send for NearbyUnit
impl Sync for NearbyUnit
impl Unpin for NearbyUnit
impl UnsafeUnpin for NearbyUnit
impl UnwindSafe for NearbyUnit
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