Struct drogue_client::registry::v1::Device [−][src]
pub struct Device {
pub metadata: ScopedMetadata,
pub spec: Map<String, Value>,
pub status: Map<String, Value>,
}
Expand description
A device.
Fields
metadata: ScopedMetadata
spec: Map<String, Value>
status: Map<String, Value>
Implementations
Validate if a device is enabled
Trait Implementations
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
fn update_section<D, F>(&mut self, f: F) -> Result<(), Error> where
D: Serialize + for<'de> Deserialize<'de> + Dialect + Default,
F: FnOnce(D) -> D,
fn spec_for<T, S>(&self, key: S) -> Option<Result<T, Error>> where
T: for<'de> Deserialize<'de>,
S: AsRef<str>,
fn status_for<T, S>(&self, key: S) -> Option<Result<T, Error>> where
T: for<'de> Deserialize<'de>,
S: AsRef<str>,
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more