pub struct GrantDelta {
pub requested: GrantSet,
pub granted: GrantSet,
pub attenuated: GrantSet,
}Expand description
What a step asked for, what it got, and what was taken away.
Recording all three makes Law I auditable after the fact: “this step asked
to write anywhere and was clamped to /build” is a fact in the ledger, not
something to be reconstructed from logs.
Fields§
§requested: GrantSetWhat the work order requested.
granted: GrantSetWhat the gate actually granted.
attenuated: GrantSetWhat was removed between the two.
Implementations§
Trait Implementations§
Source§impl Clone for GrantDelta
impl Clone for GrantDelta
Source§impl Debug for GrantDelta
impl Debug for GrantDelta
Source§impl<'de> Deserialize<'de> for GrantDelta
impl<'de> Deserialize<'de> for GrantDelta
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 GrantDelta
Source§impl PartialEq for GrantDelta
impl PartialEq for GrantDelta
Source§impl Serialize for GrantDelta
impl Serialize for GrantDelta
impl StructuralPartialEq for GrantDelta
Auto Trait Implementations§
impl Freeze for GrantDelta
impl RefUnwindSafe for GrantDelta
impl Send for GrantDelta
impl Sync for GrantDelta
impl Unpin for GrantDelta
impl UnsafeUnpin for GrantDelta
impl UnwindSafe for GrantDelta
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> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.