pub struct ValidateComponentRequest {
pub manifest: ComponentManifest,
pub component_bytes: Vec<u8>,
pub granted_capabilities: Vec<CapabilityGrant>,
}Expand description
Everything a ComponentValidator needs to check one component before
its route is registered: the manifest it claims, the real bytes it
ships, and what the route was actually granted.
Fields§
§manifest: ComponentManifestThe component’s own claimed manifest.
component_bytes: Vec<u8>The real .wasm component bytes — checked against
manifest.artifact_provenance.checksum_sha256 and structurally
inspected for its actual imports.
granted_capabilities: Vec<CapabilityGrant>What this route was actually granted, independent of what the manifest declares wanting.
Trait Implementations§
Source§impl Clone for ValidateComponentRequest
impl Clone for ValidateComponentRequest
Source§fn clone(&self) -> ValidateComponentRequest
fn clone(&self) -> ValidateComponentRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidateComponentRequest
impl Debug for ValidateComponentRequest
Source§impl<'de> Deserialize<'de> for ValidateComponentRequest
impl<'de> Deserialize<'de> for ValidateComponentRequest
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 Eq for ValidateComponentRequest
Source§impl PartialEq for ValidateComponentRequest
impl PartialEq for ValidateComponentRequest
Source§impl Serialize for ValidateComponentRequest
impl Serialize for ValidateComponentRequest
impl StructuralPartialEq for ValidateComponentRequest
Auto Trait Implementations§
impl Freeze for ValidateComponentRequest
impl RefUnwindSafe for ValidateComponentRequest
impl Send for ValidateComponentRequest
impl Sync for ValidateComponentRequest
impl Unpin for ValidateComponentRequest
impl UnsafeUnpin for ValidateComponentRequest
impl UnwindSafe for ValidateComponentRequest
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