pub struct NetRecord {
pub name: String,
pub role: String,
pub instrument: Option<String>,
pub pin: Option<Value>,
pub channel: Option<Value>,
pub address: Option<String>,
pub params: Option<Map<String, Value>>,
pub extra: Map<String, Value>,
}Expand description
One saved-net record from GET /nets/list (the box’s saved_nets.json).
Fields§
§name: StringNet name, e.g. "supply1".
role: StringRole string, e.g. "power-supply", "gpio", "adc".
instrument: Option<String>Instrument backing this net, e.g. "Rigol DP832", "LabJack T7".
pin: Option<Value>Pin / channel identifier (number or string depending on role).
channel: Option<Value>Channel (multi-channel instruments).
address: Option<String>VISA or device address.
params: Option<Map<String, Value>>Role-specific saved parameters (SPI mode, UART baudrate, …).
extra: Map<String, Value>Everything else in the record (mappings, scope_points, …).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NetRecord
impl<'de> Deserialize<'de> for NetRecord
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 NetRecord
impl RefUnwindSafe for NetRecord
impl Send for NetRecord
impl Sync for NetRecord
impl Unpin for NetRecord
impl UnsafeUnpin for NetRecord
impl UnwindSafe for NetRecord
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