pub struct EventLog {
pub run_id: String,
pub sponsor_did: String,
pub events: Vec<ExecutionEvent>,
}Fields§
§run_id: String§sponsor_did: String§events: Vec<ExecutionEvent>Implementations§
Source§impl EventLog
impl EventLog
pub fn new(run_id: &str, sponsor_did: &str) -> Self
pub fn append_event(&mut self, event: ExecutionEvent)
pub fn to_canonical_json(&self) -> String
pub fn compute_receipt_hash(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventLog
impl<'de> Deserialize<'de> for EventLog
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 StructuralPartialEq for EventLog
Auto Trait Implementations§
impl Forget for EventLog
impl Freeze for EventLog
impl RefUnwindSafe for EventLog
impl Send for EventLog
impl Sync for EventLog
impl Unpin for EventLog
impl UnsafeUnpin for EventLog
impl UnwindSafe for EventLog
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