pub struct Manifest {
pub api_version: String,
pub kind: String,
pub metadata: Metadata,
pub spec: Specification,
}
Expand description
Manifest file based on the Open Application Model (OAM) specification for declaratively managing wasmCloud applications
Fields§
§api_version: String
The OAM version of the manifest
kind: String
The kind or type of manifest described by the spec
metadata: Metadata
Metadata describing the manifest
spec: Specification
The specification for this manifest
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Returns a reference to the current description if it exists
Indicates if the manifest is shared, meaning it can be used by multiple applications
Sourcepub fn components(&self) -> impl Iterator<Item = &Component>
pub fn components(&self) -> impl Iterator<Item = &Component>
Returns the components in the manifest
Helper function to find shared components that are missing from the given list of deployed applications
Sourcepub fn wasm_components(&self) -> impl Iterator<Item = &Component>
pub fn wasm_components(&self) -> impl Iterator<Item = &Component>
Returns only the WebAssembly components in the manifest
Sourcepub fn capability_providers(&self) -> impl Iterator<Item = &Component>
pub fn capability_providers(&self) -> impl Iterator<Item = &Component>
Returns only the provider components in the manifest
Sourcepub fn component_lookup(&self) -> HashMap<&String, &Component>
pub fn component_lookup(&self) -> HashMap<&String, &Component>
Returns a map of component names to components in the manifest
Sourcepub fn policy_lookup(&self) -> HashMap<&String, &Policy>
pub fn policy_lookup(&self) -> HashMap<&String, &Policy>
Returns a map of policy names to policies in the manifest
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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>,
Source§impl From<Manifest> for OamManifest
impl From<Manifest> for OamManifest
Source§impl From<OamManifest> for Manifest
impl From<OamManifest> for Manifest
Source§fn from(manifest: OamManifest) -> Self
fn from(manifest: OamManifest) -> Self
Source§impl JsonSchema for Manifest
impl JsonSchema for Manifest
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreimpl Eq for Manifest
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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,
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.