pub struct SuiEvent {
pub id: EventID,
pub package_id: Address,
pub transaction_module: Identifier,
pub sender: Address,
pub type_: StructTag,
pub parsed_json: Value,
pub bcs: Vec<u8>,
pub timestamp_ms: Option<u64>,
}Fields§
§id: EventIDSequential event ID, ie (transaction seq number, event seq number).
- Serves as a unique event ID for each fullnode
- Also serves to sequence events for the purposes of pagination and querying. A higher id is an event seen later by that fullnode. This ID is the “cursor” for event querying.
package_id: AddressMove package where this event was emitted.
transaction_module: IdentifierMove module where this event was emitted.
sender: AddressSender’s Sui address.
type_: StructTagMove event type.
parsed_json: ValueParsed json value of the event
bcs: Vec<u8>Base64 encoded bcs bytes of the move event
timestamp_ms: Option<u64>UTC timestamp in milliseconds since epoch (1/1/1970)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SuiEvent
impl<'de> Deserialize<'de> for SuiEvent
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 SuiEvent
impl StructuralPartialEq for SuiEvent
Auto Trait Implementations§
impl !Freeze for SuiEvent
impl RefUnwindSafe for SuiEvent
impl Send for SuiEvent
impl Sync for SuiEvent
impl Unpin for SuiEvent
impl UnwindSafe for SuiEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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