pub struct Binding {
pub name: String,
pub kind: String,
pub annotations: Value,
}
Fields§
§name: String
§kind: String
§annotations: Value
Implementations§
source§impl Binding
impl Binding
pub fn new_wit(name: String, kind: String, wit: WitBindings) -> Self
pub fn get_bindings(&self) -> Option<BindingsExtended>
pub fn get_wai_bindings(&self) -> Option<WaiBindings>
pub fn get_wit_bindings(&self) -> Option<WitBindings>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Binding
impl<'de> Deserialize<'de> for Binding
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<Binding> for Binding
impl PartialEq<Binding> for Binding
impl Eq for Binding
impl StructuralEq for Binding
impl StructuralPartialEq for Binding
Auto Trait Implementations§
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnwindSafe for Binding
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.