Struct webc::metadata::annotations::Atom   
source · #[non_exhaustive]pub struct Atom {
    pub name: String,
    pub dependency: Option<String>,
}Expand description
A command annotation which specifies which atom implements a command.
Historically, each runner would have its own annotations for tracking the
atom they use (see Wasi::atom and Emscripten::atom). As part of
fixing #172, the explicit
annotations were merged into a common Atom annotation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the atom (as passed to
Container::get_atom()).
dependency: Option<String>The name of the dependency referred to by the
Manifest::use_map.
If this is None, it means the atom comes from the current package.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Atom
 
impl<'de> Deserialize<'de> for Atom
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<Atom> for Atom
 
impl PartialEq<Atom> for Atom
impl Eq for Atom
impl StructuralEq for Atom
impl StructuralPartialEq for Atom
Auto Trait Implementations§
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnwindSafe for Atom
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.