Struct drogue_client::registry::v1::Application
source · pub struct Application {
pub metadata: NonScopedMetadata,
pub spec: Map<String, Value>,
pub status: Map<String, Value>,
}
Expand description
An application, owning devices.
Fields
metadata: NonScopedMetadata
spec: Map<String, Value>
status: Map<String, Value>
Implementations
sourceimpl Application
impl Application
sourcepub fn new<A>(name: A) -> Selfwhere
A: AsRef<str>,
pub fn new<A>(name: A) -> Selfwhere
A: AsRef<str>,
Create an minimal application object from the an application name
sourcepub fn add_trust_anchor(
&mut self,
anchor: ApplicationSpecTrustAnchorEntry
) -> Result<(), Error>
pub fn add_trust_anchor(
&mut self,
anchor: ApplicationSpecTrustAnchorEntry
) -> Result<(), Error>
Insert a trust anchor entry to an application If there are no trust anchors already existing an array is created if there is an error deserializing the existing data an error is returned
Trait Implementations
sourceimpl AsMut<dyn CommonMetadataMut + 'static> for Application
impl AsMut<dyn CommonMetadataMut + 'static> for Application
sourcefn as_mut(&mut self) -> &mut (dyn CommonMetadataMut + 'static)
fn as_mut(&mut self) -> &mut (dyn CommonMetadataMut + 'static)
Converts this type into a mutable reference of the (usually inferred) input type.
sourceimpl AsRef<dyn CommonMetadata + 'static> for Application
impl AsRef<dyn CommonMetadata + 'static> for Application
sourcefn as_ref(&self) -> &(dyn CommonMetadata + 'static)
fn as_ref(&self) -> &(dyn CommonMetadata + 'static)
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for Application
impl Clone for Application
sourcefn clone(&self) -> Application
fn clone(&self) -> Application
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Application
impl Debug for Application
sourceimpl Default for Application
impl Default for Application
sourcefn default() -> Application
fn default() -> Application
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Application
impl<'de> Deserialize<'de> for Application
sourcefn 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
sourceimpl PartialEq<Application> for Application
impl PartialEq<Application> for Application
sourcefn eq(&self, other: &Application) -> bool
fn eq(&self, other: &Application) -> bool
sourceimpl Serialize for Application
impl Serialize for Application
sourceimpl Translator for Application
impl Translator for Application
fn spec(&self) -> &Map<String, Value>
fn status(&self) -> &Map<String, Value>
fn spec_mut(&mut self) -> &mut Map<String, Value>
fn status_mut(&mut self) -> &mut Map<String, Value>
fn section<D>(&self) -> Option<Result<D, Error>>where
D: for<'de> Deserialize<'de> + Dialect,
fn set_section<D>(&mut self, d: D) -> Result<(), Error>where
D: Serialize + Dialect,
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 clear_section<D>(&mut self)where
D: Serialize + Dialect,
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>,
fn attribute<A>(&self) -> A::Outputwhere
A: Attribute,
impl Eq for Application
impl StructuralEq for Application
impl StructuralPartialEq for Application
Auto Trait Implementations
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.