pub struct VariableMetadataPatch {
pub unit: Option<String>,
pub min: Option<f64>,
pub max: Option<f64>,
pub options: Vec<String>,
pub max_len: Option<u64>,
}Expand description
Model types used by create/edit APIs. Partial metadata update payload for an existing variable.
§Example
use lirays::VariableMetadataPatch;
let patch = VariableMetadataPatch {
unit: Some("psi".into()),
min: Some(1.0),
max: Some(20.0),
options: vec![],
max_len: None,
};
assert_eq!(patch.unit.as_deref(), Some("psi"));Fields§
§unit: Option<String>New engineering unit. None keeps current server value.
min: Option<f64>New minimum value. None keeps current server value.
max: Option<f64>New maximum value. None keeps current server value.
options: Vec<String>New list of allowed text values.
max_len: Option<u64>New maximum text length.
Trait Implementations§
Source§impl Clone for VariableMetadataPatch
impl Clone for VariableMetadataPatch
Source§fn clone(&self) -> VariableMetadataPatch
fn clone(&self) -> VariableMetadataPatch
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 VariableMetadataPatch
impl Debug for VariableMetadataPatch
Source§impl Default for VariableMetadataPatch
impl Default for VariableMetadataPatch
Source§fn default() -> VariableMetadataPatch
fn default() -> VariableMetadataPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VariableMetadataPatch
impl RefUnwindSafe for VariableMetadataPatch
impl Send for VariableMetadataPatch
impl Sync for VariableMetadataPatch
impl Unpin for VariableMetadataPatch
impl UnsafeUnpin for VariableMetadataPatch
impl UnwindSafe for VariableMetadataPatch
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