pub struct PluginManifest {
pub protocol_version: u32,
pub plugin_id: String,
pub executable_digest_algorithm: ExecutableDigestAlgorithm,
pub executable_digest: [u8; 32],
pub capabilities: Vec<Capability>,
pub process: ProcessContract,
pub signature_algorithm: SignatureAlgorithm,
pub signing_key_id: String,
pub signature: Vec<u8>,
}Fields§
§protocol_version: u32§plugin_id: String§executable_digest_algorithm: ExecutableDigestAlgorithm§executable_digest: [u8; 32]§capabilities: Vec<Capability>§process: ProcessContract§signature_algorithm: SignatureAlgorithm§signing_key_id: StringStable verifier key identifier; key resolution is a supervisor policy.
signature: Vec<u8>Implementations§
Source§impl PluginManifest
impl PluginManifest
pub fn normalize(&mut self) -> Result<(), PluginError>
Sourcepub fn unsigned_signing_bytes(&self) -> Result<Vec<u8>, PluginError>
pub fn unsigned_signing_bytes(&self) -> Result<Vec<u8>, PluginError>
Canonical signature preimage. The signature itself is excluded to avoid circular signing; capabilities are normalized before serialization.
pub fn signing_digest(&self) -> Result<[u8; 32], PluginError>
Trait Implementations§
Source§impl Clone for PluginManifest
impl Clone for PluginManifest
Source§fn clone(&self) -> PluginManifest
fn clone(&self) -> PluginManifest
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 PluginManifest
impl Debug for PluginManifest
Source§impl<'de> Deserialize<'de> for PluginManifest
impl<'de> Deserialize<'de> for PluginManifest
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 PluginManifest
Source§impl PartialEq for PluginManifest
impl PartialEq for PluginManifest
Source§impl Serialize for PluginManifest
impl Serialize for PluginManifest
impl StructuralPartialEq for PluginManifest
Auto Trait Implementations§
impl Freeze for PluginManifest
impl RefUnwindSafe for PluginManifest
impl Send for PluginManifest
impl Sync for PluginManifest
impl Unpin for PluginManifest
impl UnsafeUnpin for PluginManifest
impl UnwindSafe for PluginManifest
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