pub struct Model1 {
pub mn: String,
pub md: String,
pub opt: Option<String>,
pub vr: Option<String>,
pub sn: String,
pub da: Option<u16>,
}
Expand description
Common
All SunSpec compliant devices must include this as the first model
Fields§
§mn: String
Manufacturer
Well known value registered with SunSpec for compliance
md: String
Model
Manufacturer specific value (32 chars)
opt: Option<String>
Options
Manufacturer specific value (16 chars)
vr: Option<String>
Version
Manufacturer specific value (16 chars)
sn: String
Serial Number
Manufacturer specific value (32 chars)
da: Option<u16>
Device Address
Modbus device address
Detail: This point is mandatory for all SunSpec RTU devices and, for those devices, they must support values from 1-247.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model1
impl RefUnwindSafe for Model1
impl Send for Model1
impl Sync for Model1
impl Unpin for Model1
impl UnwindSafe for Model1
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