pub struct Device {
pub id: Uuid,
pub name: String<MAX_DEVICE_NAME_LEN>,
pub temperature_offset: f32,
pub humidity_offset: f32,
pub created_at: Timestamp,
pub updated_at: Timestamp,
pub firmware_version: String<MAX_FIRMWARE_VERSION_LEN>,
pub mac_address: MacAddress,
pub bt_mac_address: MacAddress,
pub serial_number: SerialNumber,
}Fields§
§id: Uuid§name: String<MAX_DEVICE_NAME_LEN>§temperature_offset: f32§humidity_offset: f32§created_at: Timestamp§updated_at: Timestamp§firmware_version: String<MAX_FIRMWARE_VERSION_LEN>§mac_address: MacAddress§bt_mac_address: MacAddress§serial_number: SerialNumberTrait Implementations§
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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