pub struct LeanWorkerCapabilityMetadata {
pub commands: Vec<LeanWorkerCommandMetadata>,
pub capabilities: Vec<LeanWorkerCapabilityFact>,
pub lean_version: Option<String>,
pub extra: Option<Value>,
}Expand description
Generic metadata reported by one downstream capability package.
Command names, capability names, versions, and extra JSON are downstream
semantics. lean-rs-worker transports and validates the envelope; it does
not decide which values affect caches.
Fields§
§commands: Vec<LeanWorkerCommandMetadata>§capabilities: Vec<LeanWorkerCapabilityFact>§lean_version: Option<String>§extra: Option<Value>Trait Implementations§
Source§impl Clone for LeanWorkerCapabilityMetadata
impl Clone for LeanWorkerCapabilityMetadata
Source§fn clone(&self) -> LeanWorkerCapabilityMetadata
fn clone(&self) -> LeanWorkerCapabilityMetadata
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 LeanWorkerCapabilityMetadata
impl Debug for LeanWorkerCapabilityMetadata
Source§impl PartialEq for LeanWorkerCapabilityMetadata
impl PartialEq for LeanWorkerCapabilityMetadata
Source§fn eq(&self, other: &LeanWorkerCapabilityMetadata) -> bool
fn eq(&self, other: &LeanWorkerCapabilityMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanWorkerCapabilityMetadata
impl StructuralPartialEq for LeanWorkerCapabilityMetadata
Auto Trait Implementations§
impl Freeze for LeanWorkerCapabilityMetadata
impl RefUnwindSafe for LeanWorkerCapabilityMetadata
impl Send for LeanWorkerCapabilityMetadata
impl Sync for LeanWorkerCapabilityMetadata
impl Unpin for LeanWorkerCapabilityMetadata
impl UnsafeUnpin for LeanWorkerCapabilityMetadata
impl UnwindSafe for LeanWorkerCapabilityMetadata
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