pub struct Component {
pub name: Option<String>,
pub module_hash: String,
pub tags: Option<Vec<String>>,
pub rev: Option<i32>,
pub ver: Option<String>,
pub call_alias: Option<String>,
pub provider: bool,
}
Expand description
The metadata that corresponds to a component
Fields§
§name: Option<String>
A descriptive name for this component, should not include version information or public key
module_hash: String
A hash of the module’s bytes as they exist without the embedded signature. This is stored so wascap can determine if a WebAssembly module’s bytecode has been altered after it was signed
List of arbitrary string tags associated with the claims
rev: Option<i32>
Indicates a monotonically increasing revision number. Optional.
ver: Option<String>
Indicates a human-friendly version string
call_alias: Option<String>
An optional, code-friendly alias that can be used instead of a public key or OCI reference for invocations
provider: bool
Indicates whether this module is a capability provider
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Component
impl<'de> Deserialize<'de> for Component
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
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)