pub struct NodeMetadata {
pub schema_version: String,
pub delivery: NodeDelivery,
pub node_type: String,
pub service_id: String,
pub service_version: String,
pub source: NodeSource,
}Fields§
§schema_version: String§delivery: NodeDelivery§node_type: String§service_id: String§service_version: String§source: NodeSourceImplementations§
Source§impl NodeMetadata
impl NodeMetadata
Sourcepub fn verify(
&self,
verify_signature: impl FnOnce(&[u8], &str) -> Result<(), String>,
) -> Result<NodeBindingMetadata, String>
pub fn verify( &self, verify_signature: impl FnOnce(&[u8], &str) -> Result<(), String>, ) -> Result<NodeBindingMetadata, String>
The caller supplies environment-scoped publisher trust. No device may choose its own trusted key. Verification precedes all use of manifest fields.
Sourcepub fn verify_preview(
&self,
host_id: &str,
env: RuntimeEnv,
verify_proof: impl FnOnce(&str) -> Result<PluginPreviewProof, String>,
) -> Result<NodeBindingMetadata, String>
pub fn verify_preview( &self, host_id: &str, env: RuntimeEnv, verify_proof: impl FnOnce(&str) -> Result<PluginPreviewProof, String>, ) -> Result<NodeBindingMetadata, String>
The verifier MUST use a key from authenticated onboarding or an existing binding, never one offered in this Node’s metadata.
Trait Implementations§
Source§impl Clone for NodeMetadata
impl Clone for NodeMetadata
Source§impl Debug for NodeMetadata
impl Debug for NodeMetadata
Source§impl<'de> Deserialize<'de> for NodeMetadata
impl<'de> Deserialize<'de> for NodeMetadata
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 NodeMetadata
Source§impl PartialEq for NodeMetadata
impl PartialEq for NodeMetadata
Source§impl Serialize for NodeMetadata
impl Serialize for NodeMetadata
impl StructuralPartialEq for NodeMetadata
Auto Trait Implementations§
impl Forget for NodeMetadata
impl Freeze for NodeMetadata
impl RefUnwindSafe for NodeMetadata
impl Send for NodeMetadata
impl Sync for NodeMetadata
impl Unpin for NodeMetadata
impl UnsafeUnpin for NodeMetadata
impl UnwindSafe for NodeMetadata
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.