pub struct DeviceResponse {Show 15 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_metadata: Option<Value>,
pub external_id: Option<String>,
pub hard_delete_at: Option<DateTime<Utc>>,
pub id: String,
pub integration_id: String,
pub metadata: Option<HashMap>,
pub name: LocalizedString,
pub org_id: String,
pub purge_at: Option<DateTime<Utc>>,
pub stale: Option<bool>,
pub updated_at: Option<DateTime<Utc>>,
}Expand description
DeviceResponse
JSON schema
{
"allOf": [
{
"$ref": "#/components/schemas/Device"
},
{
"oneOf": [
{
"type": "null"
},
{
"oneOf": [
{
"$ref": "#/components/schemas/StorageFeatures"
}
]
}
]
},
{
"type": "object",
"properties": {
"stale": {
"description": "Present when `include_stale=true` was requested and the provider supports stale detection.",
"type": [
"boolean",
"null"
]
}
}
}
]
}Fields§
§cache_hit: Option<bool>§cache_ttl: Option<i64>§created_at: Option<DateTime<Utc>>§deleted_at: Option<DateTime<Utc>>§device_metadata: Option<Value>Device-specific JSON metadata (stored in Postgres devices.metadata JSONB column).
external_id: Option<String>External ID from the integration provider.
hard_delete_at: Option<DateTime<Utc>>§id: StringUnique identifier (ULID).
integration_id: StringOwning integration (e.g. Shelly Cloud account/connection).
metadata: Option<HashMap>§name: LocalizedString§org_id: StringOrganization that owns this device.
purge_at: Option<DateTime<Utc>>§stale: Option<bool>Present when include_stale=true was requested and the provider supports stale detection.
updated_at: Option<DateTime<Utc>>Trait Implementations§
Source§impl Clone for DeviceResponse
impl Clone for DeviceResponse
Source§fn clone(&self) -> DeviceResponse
fn clone(&self) -> DeviceResponse
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 DeviceResponse
impl Debug for DeviceResponse
Source§impl<'de> Deserialize<'de> for DeviceResponse
impl<'de> Deserialize<'de> for DeviceResponse
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 DeviceResponse
impl RefUnwindSafe for DeviceResponse
impl Send for DeviceResponse
impl Sync for DeviceResponse
impl Unpin for DeviceResponse
impl UnsafeUnpin for DeviceResponse
impl UnwindSafe for DeviceResponse
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