pub enum EventFilter {
All([Box<EventFilter>; 0]),
Sender(Address),
Transaction(TransactionDigest),
MoveModule {
package: ObjectId,
module: Identifier,
},
MoveEventType(StructTag),
MoveEventModule {
package: ObjectId,
module: Identifier,
},
TimeRange {
start_time: u64,
end_time: u64,
},
}Variants§
All([Box<EventFilter>; 0])
Return all events.
Sender(Address)
Query by sender address.
Transaction(TransactionDigest)
Return events emitted by the given transaction.
Tuple Fields
0: TransactionDigestdigest of the transaction, as base-64 encoded string
MoveModule
Return events emitted in a specified Move module.
If the event is defined in Module A but emitted in a tx with Module B,
query MoveModule by module B returns the event.
Query MoveEventModule by module A returns the event too.
MoveEventType(StructTag)
Return events with the given Move event struct name (struct tag).
For example, if the event is defined in 0xabcd::MyModule, and named
Foo, then the struct tag is 0xabcd::MyModule::Foo.
MoveEventModule
Return events with the given Move module name where the event struct is defined.
If the event is defined in Module A but emitted in a tx with Module B,
query MoveEventModule by module A returns the event.
Query MoveModule by module B returns the event too.
TimeRange
Return events emitted in [start_time, end_time] interval
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventFilter
impl Debug for EventFilter
Source§impl<'de> Deserialize<'de> for EventFilter
impl<'de> Deserialize<'de> for EventFilter
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>,
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnwindSafe for EventFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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