pub struct Event {
pub package_id: ObjectId,
pub module: Identifier,
pub sender: Address,
pub type_: StructTag,
pub contents: Vec<u8>,
}
Expand description
An event
§BCS
The BCS serialized form for this type is defined by the following ABNF:
event = object-id identifier address struct-tag bytes
Fields§
§package_id: ObjectId
Package id of the top-level function invoked by a MoveCall command which triggered this event to be emitted.
module: Identifier
Module name of the top-level function invoked by a MoveCall command which triggered this event to be emitted.
sender: Address
Address of the account that sent the transaction where this event was emitted.
type_: StructTag
The type of the event emitted
contents: Vec<u8>
BCS serialized bytes of the event
Trait Implementations§
Source§impl Arbitrary for Event
impl Arbitrary for Event
Source§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.Source§type Strategy = BoxedStrategy<Event>
type Strategy = BoxedStrategy<Event>
The type of
Strategy
used to generate values of type Self
.Source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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