pub struct PropertyPath {
pub thing: ThingId,
pub feature: FeatureId,
pub property: PropertyId,
}Expand description
Identifies one property in a Thing — protocol-agnostic.
Ord is implemented so paths can key a BTreeMap (the default Thing
mapping container in no_std + alloc).
Fields§
§thing: ThingIdOwning Thing.
feature: FeatureIdFeature inside the Thing.
property: PropertyIdProperty inside the feature.
Implementations§
Source§impl PropertyPath
impl PropertyPath
Sourcepub fn new(thing: ThingId, feature: FeatureId, property: PropertyId) -> Self
pub fn new(thing: ThingId, feature: FeatureId, property: PropertyId) -> Self
Construct from already-validated identifiers.
Trait Implementations§
Source§impl Clone for PropertyPath
impl Clone for PropertyPath
Source§fn clone(&self) -> PropertyPath
fn clone(&self) -> PropertyPath
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 PropertyPath
impl Debug for PropertyPath
Source§impl<'de> Deserialize<'de> for PropertyPath
impl<'de> Deserialize<'de> for PropertyPath
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
Source§impl Display for PropertyPath
impl Display for PropertyPath
impl Eq for PropertyPath
Source§impl Hash for PropertyPath
impl Hash for PropertyPath
Source§impl Ord for PropertyPath
impl Ord for PropertyPath
Source§fn cmp(&self, other: &PropertyPath) -> Ordering
fn cmp(&self, other: &PropertyPath) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PropertyPath
impl PartialEq for PropertyPath
Source§impl PartialOrd for PropertyPath
impl PartialOrd for PropertyPath
Source§impl Serialize for PropertyPath
impl Serialize for PropertyPath
impl StructuralPartialEq for PropertyPath
Auto Trait Implementations§
impl Freeze for PropertyPath
impl RefUnwindSafe for PropertyPath
impl Send for PropertyPath
impl Sync for PropertyPath
impl Unpin for PropertyPath
impl UnsafeUnpin for PropertyPath
impl UnwindSafe for PropertyPath
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