pub struct Attribute {
pub float_val: Option<f64>,
pub int_val: Option<i64>,
pub string_val: Option<String>,
pub bool_val: Option<bool>,
pub unit: String,
}
Expand description
Attribute is used to describe the value of an attribute, optionally specifying units
This struct was generated based on the Go types of the official Nomad API.
Fields§
§float_val: Option<f64>
Float is the float value for the attribute
int_val: Option<i64>
Int is the int value for the attribute
string_val: Option<String>
String is the string value for the attribute
bool_val: Option<bool>
Bool is the bool value for the attribute
unit: String
Unit is the optional unit for the set int or float value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attribute
impl<'de> Deserialize<'de> for Attribute
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
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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