pub struct CapabilityManifestExternal {
pub name: String,
pub effects: CapabilityEffects,
}Expand description
One external’s manifest entry, restricted to the fields BH-1 needs.
Deserialized from the same JSON manifest file
docs/host-capability-manifest.md/brink_ir::host_manifest describes for
the compiler/IDE side (name, params, kind, doc, widgets, path,
…) — this type only names name and effects; every other key present in
a real manifest file is ignored by serde’s default “unknown fields are
fine” behavior, so the same file serves both consumers.
Not converged onto brink_ir::host_manifest::ManifestExternal (issue
#911, BH follow-up deliverable 1) — see that type’s module doc for the
full rationale (opposite-direction crate dependency the two sides must
never take on each other). The two shared keys (externals, name) are
pinned by brink_format::manifest_field_names; tests/manifest_field_convergence.rs
cross-validates one manifest literal against both types.
Fields§
§name: String§effects: CapabilityEffectsTrait Implementations§
Source§impl Clone for CapabilityManifestExternal
impl Clone for CapabilityManifestExternal
Source§fn clone(&self) -> CapabilityManifestExternal
fn clone(&self) -> CapabilityManifestExternal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilityManifestExternal
impl Debug for CapabilityManifestExternal
Source§impl<'de> Deserialize<'de> for CapabilityManifestExternal
impl<'de> Deserialize<'de> for CapabilityManifestExternal
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>,
impl Eq for CapabilityManifestExternal
impl StructuralPartialEq for CapabilityManifestExternal
Auto Trait Implementations§
impl Freeze for CapabilityManifestExternal
impl RefUnwindSafe for CapabilityManifestExternal
impl Send for CapabilityManifestExternal
impl Sync for CapabilityManifestExternal
impl Unpin for CapabilityManifestExternal
impl UnsafeUnpin for CapabilityManifestExternal
impl UnwindSafe for CapabilityManifestExternal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.