pub struct PointModel {
pub id: i32,
pub device_id: i32,
pub name: String,
pub key: String,
pub type: DataPointType,
pub data_type: DataType,
pub access_mode: AccessMode,
pub unit: Option<String>,
pub min_value: Option<f64>,
pub max_value: Option<f64>,
pub transform: Transform,
pub driver_config: Value,
}Fields§
§id: i32§device_id: i32Device ID
name: StringName
key: StringKey
type: DataPointTypeType
data_type: DataTypeData Type
access_mode: AccessModeAccess Mode
unit: Option<String>Unit
min_value: Option<f64>Min Value
max_value: Option<f64>Max Value
transform: TransformLogical-layer transformation rules for this point.
This is always present. The identity transform means:
datatype = None(logical type follows wiredata_type)scale = None(treated as 1.0)offset = None(treated as 0.0)negate = false
driver_config: ValueDriver configuration
Trait Implementations§
Source§impl Clone for PointModel
impl Clone for PointModel
Source§fn clone(&self) -> PointModel
fn clone(&self) -> PointModel
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 PointModel
impl Debug for PointModel
Source§impl<'de> Deserialize<'de> for PointModel
impl<'de> Deserialize<'de> for PointModel
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
Source§impl PartialEq for PointModel
impl PartialEq for PointModel
Source§impl Serialize for PointModel
impl Serialize for PointModel
impl StructuralPartialEq for PointModel
Auto Trait Implementations§
impl Freeze for PointModel
impl RefUnwindSafe for PointModel
impl Send for PointModel
impl Sync for PointModel
impl Unpin for PointModel
impl UnwindSafe for PointModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.