pub struct HitlRevocation {
pub scope: RevocationScope,
pub issued_at: DateTime<Utc>,
}Expand description
A signed “forget”: every decision covered by scope whose signed
issued_at is not after this one’s issued_at stops settling the gate.
Nothing is deleted — the log stays append-only (#1770).
Fields§
§scope: RevocationScope§issued_at: DateTime<Utc>Implementations§
Source§impl HitlRevocation
impl HitlRevocation
pub fn to_payload(&self) -> Value
Sourcepub fn from_payload(payload: &Value) -> Option<Self>
pub fn from_payload(payload: &Value) -> Option<Self>
None = not a revocation note (or a malformed one, which revokes
nothing — the safe reading is “still remembered”, and the gate asked
when that decision was recorded).
pub fn covers(&self, action_hash: &str) -> bool
Trait Implementations§
Source§impl Clone for HitlRevocation
impl Clone for HitlRevocation
Source§impl Debug for HitlRevocation
impl Debug for HitlRevocation
Source§impl<'de> Deserialize<'de> for HitlRevocation
impl<'de> Deserialize<'de> for HitlRevocation
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 HitlRevocation
impl RefUnwindSafe for HitlRevocation
impl Send for HitlRevocation
impl Sync for HitlRevocation
impl Unpin for HitlRevocation
impl UnsafeUnpin for HitlRevocation
impl UnwindSafe for HitlRevocation
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