pub struct GetShelfDeviceResponse {
pub id: u32,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub deleted_at: Option<DateTime<Utc>>,
pub project_id: u32,
pub asset_type_id: i32,
pub registry_id: Option<u32>,
pub serial_number: String,
pub secret: String,
pub algorithm: String,
pub mqtt_host: Option<String>,
pub mqtt_port: Option<u16>,
}Expand description
Get Shelf Device Response Scheme.
Fields§
§id: u32Shelf device’s ID.
created_at: DateTime<Utc>Shelf device’s creation date.
updated_at: DateTime<Utc>Shelf device’s last updated date.
deleted_at: Option<DateTime<Utc>>Shelf device’s deletion date.
project_id: u32Project id on the Hub.
asset_type_id: i32Asset type of the device.
registry_id: Option<u32>Registry id on the Hub.
serial_number: StringSerial number of the shelf device.
secret: StringThe RSA public key that will be used to validate the JWT token made by the device.
algorithm: StringAlgorithm used to encrypt the secret (i.e. RS256).
mqtt_host: Option<String>MQTT Host.
mqtt_port: Option<u16>MQTT Port.
Trait Implementations§
Source§impl Debug for GetShelfDeviceResponse
impl Debug for GetShelfDeviceResponse
Source§impl<'de> Deserialize<'de> for GetShelfDeviceResponse
impl<'de> Deserialize<'de> for GetShelfDeviceResponse
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 GetShelfDeviceResponse
impl RefUnwindSafe for GetShelfDeviceResponse
impl Send for GetShelfDeviceResponse
impl Sync for GetShelfDeviceResponse
impl Unpin for GetShelfDeviceResponse
impl UnwindSafe for GetShelfDeviceResponse
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