Struct Inspection
pub struct Inspection {
pub identity: Identity,
pub claimed: Option<Identity>,
pub signed_ok: bool,
pub valid: bool,
pub sha3: Option<String>,
pub header_hash: Option<String>,
pub manifest_sha3: Option<String>,
pub component_size: Option<u64>,
pub size: u64,
pub errors: Vec<ErrorReport>,
}Expand description
The result of inspectPackage. Fields the file does not yield are null.
Fields§
§identity: IdentityThe verified identity (app id, version, world, signer, manifest), present only when
signed_ok; its fields are flattened into the top level.
claimed: Option<Identity>What an unsigned or badly signed file claims about itself, never to be shown as
fact; null when the signature verifies.
signed_ok: boolWhether the publisher signature verifies (unsigned packages never do).
valid: boolWhether every registry package check passed under the limits given (the defaults,
or the registry policy’s for inspectPackageWith): signature, hashes, world,
manifest and WebAssembly component.
sha3: Option<String>SHA3-256 of the whole file, hex.
header_hash: Option<String>SHA3-256 of the header bytes, hex.
manifest_sha3: Option<String>The header’s SHA3-256 of the manifest, hex.
component_size: Option<u64>Bytes of the WebAssembly component.
size: u64Bytes of the whole file.
errors: Vec<ErrorReport>What failed, first failure first.
Trait Implementations§
§impl Clone for Inspection
impl Clone for Inspection
§fn clone(&self) -> Inspection
fn clone(&self) -> Inspection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more