pub struct ProductKey {
pub kind: ProductKind,
pub location: Option<String>,
}Expand description
Identifies products that should be compared against each other: same product kind, same location.
Fields§
§kind: ProductKindProduct kind, e.g. METAR.
location: Option<String>Station/location identifier, when the product is tied to one.
Trait Implementations§
Source§impl Clone for ProductKey
impl Clone for ProductKey
Source§fn clone(&self) -> ProductKey
fn clone(&self) -> ProductKey
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 ProductKey
impl Debug for ProductKey
impl Eq for ProductKey
Source§impl Hash for ProductKey
impl Hash for ProductKey
Source§impl PartialEq for ProductKey
impl PartialEq for ProductKey
Source§fn eq(&self, other: &ProductKey) -> bool
fn eq(&self, other: &ProductKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProductKey
Auto Trait Implementations§
impl Freeze for ProductKey
impl RefUnwindSafe for ProductKey
impl Send for ProductKey
impl Sync for ProductKey
impl Unpin for ProductKey
impl UnsafeUnpin for ProductKey
impl UnwindSafe for ProductKey
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