pub struct EventUtils;Expand description
event handling tools
Implementations§
Source§impl EventUtils
impl EventUtils
Sourcepub fn create_event_data_from_event(
event: Event,
transaction_hash: String,
block_height: u64,
) -> Result<EventData, String>
pub fn create_event_data_from_event( event: Event, transaction_hash: String, block_height: u64, ) -> Result<EventData, String>
Create EventData from the Event structure
Sourcepub fn extract_event_field(event: &EventData, field: &str) -> Option<Value>
pub fn extract_event_field(event: &EventData, field: &str) -> Option<Value>
Extract specific fields from events
Sourcepub fn is_event_type(event: &EventData, expected_type: &str) -> bool
pub fn is_event_type(event: &EventData, expected_type: &str) -> bool
Check if the event type matches
Auto Trait Implementations§
impl Freeze for EventUtils
impl RefUnwindSafe for EventUtils
impl Send for EventUtils
impl Sync for EventUtils
impl Unpin for EventUtils
impl UnwindSafe for EventUtils
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more