pub struct DeviceAttribute {
pub bool: Option<bool>,
pub int: Option<i64>,
pub string: Option<String>,
pub version: Option<String>,
}
Expand description
DeviceAttribute must have exactly one field set.
Fields§
§bool: Option<bool>
BoolValue is a true/false value.
int: Option<i64>
IntValue is a number.
string: Option<String>
StringValue is a string. Must not be longer than 64 characters.
version: Option<String>
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
Trait Implementations§
Source§impl Clone for DeviceAttribute
impl Clone for DeviceAttribute
Source§fn clone(&self) -> DeviceAttribute
fn clone(&self) -> DeviceAttribute
Returns a copy 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 DeviceAttribute
impl Debug for DeviceAttribute
Source§impl DeepMerge for DeviceAttribute
impl DeepMerge for DeviceAttribute
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceAttribute
impl Default for DeviceAttribute
Source§fn default() -> DeviceAttribute
fn default() -> DeviceAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceAttribute
impl<'de> Deserialize<'de> for DeviceAttribute
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 DeviceAttribute
impl PartialEq for DeviceAttribute
Source§impl Serialize for DeviceAttribute
impl Serialize for DeviceAttribute
impl StructuralPartialEq for DeviceAttribute
Auto Trait Implementations§
impl Freeze for DeviceAttribute
impl RefUnwindSafe for DeviceAttribute
impl Send for DeviceAttribute
impl Sync for DeviceAttribute
impl Unpin for DeviceAttribute
impl UnwindSafe for DeviceAttribute
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