Enum diem_sdk::types::contract_event::ContractEvent [−][src]
pub enum ContractEvent {
V0(ContractEventV0),
}
Expand description
Support versioning of the data structure.
Variants
V0(ContractEventV0)
Tuple Fields of V0
Implementations
Methods from Deref<Target = ContractEventV0>
pub fn event_data(&self) -> &[u8]ⓘ
Trait Implementations
type Hasher = ContractEventHasher
type Hasher = ContractEventHasher
The associated Hasher
type which comes with a unique salt for this type.
type Target = ContractEventV0
type Target = ContractEventV0
The resulting type after dereferencing.
Dereferences the value.
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContractEvent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<ContractEvent, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
impl TryFrom<ContractEvent> for EventDataView
impl TryFrom<ContractEvent> for EventDataView
pub fn try_from(event: ContractEvent) -> Result<EventDataView, Error>
pub fn try_from(event: ContractEvent) -> Result<EventDataView, Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ContractEvent
impl Send for ContractEvent
impl Sync for ContractEvent
impl Unpin for ContractEvent
impl UnwindSafe for ContractEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Generates a hash used only for tests.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more