pub struct ProofEvent {Show 14 fields
pub event_version: ProofEvent_EventVersion,
pub id: String,
pub type_: String,
pub actor_id: ActorId,
pub instance_id: Option<InstanceId>,
pub session_id: Option<String>,
pub timestamp: Timestamp,
pub level: ProofLevel,
pub subject_ref: Option<String>,
pub payload_hash: Option<HashRef>,
pub parent_hash: Option<HashRef>,
pub context: Option<Value>,
pub provenance: Option<ProofEvent_Provenance>,
pub signature: SignatureEnvelope,
}Expand description
Signed record of an important event (TF-0005). Hash-chain verification lives in Phase 2.
Fields§
§event_version: ProofEvent_EventVersionVersion of the proof-event schema itself.
id: StringStable event identifier.
type_: StringDotted event-type identifier, e.g. session.established, action.approved.
actor_id: ActorIdActor that produced the event.
instance_id: Option<InstanceId>Specific actor instance that produced the event.
session_id: Option<String>Session identifier this event belongs to.
timestamp: TimestampWhen the event occurred.
level: ProofLevelProof level at which this event was emitted.
subject_ref: Option<String>Reference to the object this event is about (capability ID, file hash, etc.).
payload_hash: Option<HashRef>Hash of the event’s associated payload.
parent_hash: Option<HashRef>Hash of the immediately preceding event in the hash-chain.
context: Option<Value>Free-form context object carried with the event.
provenance: Option<ProofEvent_Provenance>Chain of responsibility for this event: who/what authorised, requested, and executed the action. TF-0006 “chain of responsibility”.
signature: SignatureEnvelopeSignature envelope over the canonical form of this event (not verified in the foundation phase).
Trait Implementations§
Source§impl Clone for ProofEvent
impl Clone for ProofEvent
Source§fn clone(&self) -> ProofEvent
fn clone(&self) -> ProofEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProofEvent
impl Debug for ProofEvent
Source§impl<'de> Deserialize<'de> for ProofEvent
impl<'de> Deserialize<'de> for ProofEvent
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>,
impl Eq for ProofEvent
Source§impl PartialEq for ProofEvent
impl PartialEq for ProofEvent
Source§fn eq(&self, other: &ProofEvent) -> bool
fn eq(&self, other: &ProofEvent) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ProofEvent
impl Serialize for ProofEvent
impl StructuralPartialEq for ProofEvent
Auto Trait Implementations§
impl Freeze for ProofEvent
impl RefUnwindSafe for ProofEvent
impl Send for ProofEvent
impl Sync for ProofEvent
impl Unpin for ProofEvent
impl UnsafeUnpin for ProofEvent
impl UnwindSafe for ProofEvent
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more