pub struct CustomSensorUnit {
pub html_code: [u8; 32],
pub simple_text: [u8; 8],
}Expand description
Custom sensor unit descriptor
Fields§
§html_code: [u8; 32]§simple_text: [u8; 8]Implementations§
Source§impl CustomSensorUnit
impl CustomSensorUnit
pub fn new() -> Self
pub fn set_html_code(&mut self, code: &str) -> Result<()>
pub fn get_html_code(&self) -> String
pub fn set_simple_text(&mut self, text: &str) -> Result<()>
pub fn get_simple_text(&self) -> String
Trait Implementations§
Source§impl Clone for CustomSensorUnit
impl Clone for CustomSensorUnit
Source§fn clone(&self) -> CustomSensorUnit
fn clone(&self) -> CustomSensorUnit
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomSensorUnit
impl Debug for CustomSensorUnit
Source§impl Default for CustomSensorUnit
impl Default for CustomSensorUnit
Source§impl<'de> Deserialize<'de> for CustomSensorUnit
impl<'de> Deserialize<'de> for CustomSensorUnit
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 CustomSensorUnit
impl RefUnwindSafe for CustomSensorUnit
impl Send for CustomSensorUnit
impl Sync for CustomSensorUnit
impl Unpin for CustomSensorUnit
impl UnsafeUnpin for CustomSensorUnit
impl UnwindSafe for CustomSensorUnit
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