pub struct EntityResponse {Show 16 fields
pub cache_hit: Option<bool>,
pub cache_ttl: Option<i64>,
pub created_at: Option<DateTime<Utc>>,
pub deleted_at: Option<DateTime<Utc>>,
pub device_id: String,
pub entity_metadata: Option<HashMap>,
pub entity_type: EntityType,
pub external_id: Option<String>,
pub hard_delete_at: Option<DateTime<Utc>>,
pub id: String,
pub metadata: Option<HashMap>,
pub name: Option<String>,
pub purge_at: Option<DateTime<Utc>>,
pub state: Option<Value>,
pub updated_at: Option<DateTime<Utc>>,
pub zone_id: Option<String>,
}Expand description
EntityResponse
JSON schema
{
"allOf": [
{
"$ref": "#/components/schemas/Entity"
},
{
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/StorageFeatures"
}
]
}
]
},
{
"type": "object",
"properties": {
"entity_metadata": {
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/HashMap"
}
]
}
]
},
"state": {}
}
}
]
}Fields§
§cache_hit: Option<bool>§cache_ttl: Option<i64>§created_at: Option<DateTime<Utc>>§deleted_at: Option<DateTime<Utc>>§device_id: StringParent device ID.
entity_metadata: Option<HashMap>§entity_type: EntityType§external_id: Option<String>External ID from the integration.
hard_delete_at: Option<DateTime<Utc>>§id: StringUnique identifier (ULID).
metadata: Option<HashMap>§name: Option<String>Optional friendly name for the entity.
purge_at: Option<DateTime<Utc>>§state: Option<Value>§updated_at: Option<DateTime<Utc>>§zone_id: Option<String>Optional zone this entity belongs to.
Trait Implementations§
Source§impl Clone for EntityResponse
impl Clone for EntityResponse
Source§fn clone(&self) -> EntityResponse
fn clone(&self) -> EntityResponse
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 EntityResponse
impl Debug for EntityResponse
Source§impl<'de> Deserialize<'de> for EntityResponse
impl<'de> Deserialize<'de> for EntityResponse
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
Auto Trait Implementations§
impl Freeze for EntityResponse
impl RefUnwindSafe for EntityResponse
impl Send for EntityResponse
impl Sync for EntityResponse
impl Unpin for EntityResponse
impl UnsafeUnpin for EntityResponse
impl UnwindSafe for EntityResponse
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