pub struct SafetyCertificate {
pub certificate_id: String,
pub action_id: String,
pub agent_id: String,
pub decided_at: DateTime<Utc>,
pub decision: CertificationDecision,
pub zone: SafetyZone,
pub margins: BTreeMap<String, f64>,
pub gradient: Option<f64>,
pub binding_constraint: Option<String>,
pub drift_budget: Option<f64>,
pub deterministic_hash: DeterministicHash,
pub domain_payload: Option<Value>,
}Expand description
A safety certificate produced by the certification kernel.
Fields§
§certificate_id: StringUnique certificate identifier.
action_id: StringIdentifier of the action that was certified.
agent_id: StringIdentifier of the agent that proposed the action.
decided_at: DateTime<Utc>When the certification decision was made.
decision: CertificationDecisionThe certification decision.
zone: SafetyZoneSafety zone classification.
margins: BTreeMap<String, f64>Per-channel margins (channel_name -> margin in [0,1]).
gradient: Option<f64>Aggregate rate of change (gradient).
binding_constraint: Option<String>Name of the binding (tightest) constraint channel.
drift_budget: Option<f64>Remaining budget before zone transition.
deterministic_hash: DeterministicHashDeterministic hash for reproducibility verification.
domain_payload: Option<Value>Opaque domain-specific payload (e.g., full channel breakdown as JSON).
Trait Implementations§
Source§impl Clone for SafetyCertificate
impl Clone for SafetyCertificate
Source§fn clone(&self) -> SafetyCertificate
fn clone(&self) -> SafetyCertificate
Returns a duplicate of the value. Read more
1.0.0 · 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 SafetyCertificate
impl Debug for SafetyCertificate
Source§impl<'de> Deserialize<'de> for SafetyCertificate
impl<'de> Deserialize<'de> for SafetyCertificate
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 SafetyCertificate
impl RefUnwindSafe for SafetyCertificate
impl Send for SafetyCertificate
impl Sync for SafetyCertificate
impl Unpin for SafetyCertificate
impl UnsafeUnpin for SafetyCertificate
impl UnwindSafe for SafetyCertificate
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