pub struct Metadata {
pub version: String,
pub created: Option<String>,
pub author: Option<String>,
pub description: String,
pub references: Vec<String>,
pub depends_on: Vec<String>,
pub registry: bool,
pub enforcement_level: Option<EnforcementLevel>,
pub locked_level: Option<String>,
}Expand description
Contract metadata block.
Fields§
§version: String§created: Option<String>§description: String§references: Vec<String>§depends_on: Vec<String>Contract dependencies — other contracts this one composes. Values are contract stems (e.g. “silu-kernel-v1”).
registry: boolData registry contracts (lookup tables, enum definitions, config bounds)
are exempt from the provability invariant. All other contracts MUST have
proof_obligations, falsification_tests, and kani_harnesses.
enforcement_level: Option<EnforcementLevel>Per-contract enforcement level (Section 17, Gap 1).
basic → schema valid; standard → + falsification + kani;
strict → + all bindings implemented; proven → + Lean 4 proved.
locked_level: Option<String>Once set, the contract cannot drop below this verification level
without an explicit pv unlock (Section 17, Gap 5).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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