pub struct Thing {
pub thing_id: ThingId,
pub policy_id: Option<PolicyId>,
pub attributes: BTreeMap<SmolStr, Value>,
pub features: BTreeMap<FeatureId, Feature>,
}Expand description
A Thing — the top-level digital twin.
Fields§
§thing_id: ThingIdGlobally unique id, namespace:name.
policy_id: Option<PolicyId>Optional access policy reference.
attributes: BTreeMap<SmolStr, Value>Free-form attributes (manufacturer, location, …).
features: BTreeMap<FeatureId, Feature>Features by id.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Thing
impl<'de> Deserialize<'de> for Thing
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 StructuralPartialEq for Thing
Auto Trait Implementations§
impl Freeze for Thing
impl RefUnwindSafe for Thing
impl Send for Thing
impl Sync for Thing
impl Unpin for Thing
impl UnsafeUnpin for Thing
impl UnwindSafe for Thing
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