Enum diem_sdk::types::contract_event::ContractEvent
pub enum ContractEvent {
V0(ContractEventV0),
}
Expand description
Support versioning of the data structure.
Variants§
V0(ContractEventV0)
Implementations§
§impl ContractEvent
impl ContractEvent
§impl ContractEvent
impl ContractEvent
pub fn strategy_impl( event_key_strategy: impl Strategy<Value = EventKey> ) -> impl Strategy<Value = ContractEvent>
Methods from Deref<Target = ContractEventV0>§
pub fn key(&self) -> &EventKey
pub fn sequence_number(&self) -> u64
pub fn event_data(&self) -> &[u8] ⓘ
pub fn type_tag(&self) -> &TypeTag
Trait Implementations§
§impl Arbitrary for ContractEvent
impl Arbitrary for ContractEvent
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§fn arbitrary_with(
_args: <ContractEvent as Arbitrary>::Parameters
) -> <ContractEvent as Arbitrary>::Strategy
fn arbitrary_with( _args: <ContractEvent as Arbitrary>::Parameters ) -> <ContractEvent as Arbitrary>::Strategy
§type Strategy = BoxedStrategy<ContractEvent>
type Strategy = BoxedStrategy<ContractEvent>
The type of
Strategy
used to generate values of type Self
.§impl Clone for ContractEvent
impl Clone for ContractEvent
§fn clone(&self) -> ContractEvent
fn clone(&self) -> ContractEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl CryptoHash for ContractEvent
impl CryptoHash for ContractEvent
§impl Debug for ContractEvent
impl Debug for ContractEvent
§impl Deref for ContractEvent
impl Deref for ContractEvent
§type Target = ContractEventV0
type Target = ContractEventV0
The resulting type after dereferencing.
§fn deref(&self) -> &<ContractEvent as Deref>::Target
fn deref(&self) -> &<ContractEvent as Deref>::Target
Dereferences the value.
§impl<'de> Deserialize<'de> for ContractEvent
impl<'de> Deserialize<'de> for ContractEvent
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ContractEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
§impl Display for ContractEvent
impl Display for ContractEvent
§impl Hash for ContractEvent
impl Hash for ContractEvent
§impl PartialEq<ContractEvent> for ContractEvent
impl PartialEq<ContractEvent> for ContractEvent
§fn eq(&self, other: &ContractEvent) -> bool
fn eq(&self, other: &ContractEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for ContractEvent
impl Serialize for ContractEvent
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
§impl TryFrom<&ContractEvent> for AdminTransactionEvent
impl TryFrom<&ContractEvent> for AdminTransactionEvent
§fn try_from(event: &ContractEvent) -> Result<AdminTransactionEvent, Error>
fn try_from(event: &ContractEvent) -> Result<AdminTransactionEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for BaseUrlRotationEvent
impl TryFrom<&ContractEvent> for BaseUrlRotationEvent
§fn try_from(event: &ContractEvent) -> Result<BaseUrlRotationEvent, Error>
fn try_from(event: &ContractEvent) -> Result<BaseUrlRotationEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for BurnEvent
impl TryFrom<&ContractEvent> for BurnEvent
§impl TryFrom<&ContractEvent> for CancelBurnEvent
impl TryFrom<&ContractEvent> for CancelBurnEvent
§fn try_from(event: &ContractEvent) -> Result<CancelBurnEvent, Error>
fn try_from(event: &ContractEvent) -> Result<CancelBurnEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for ComplianceKeyRotationEvent
impl TryFrom<&ContractEvent> for ComplianceKeyRotationEvent
§fn try_from(event: &ContractEvent) -> Result<ComplianceKeyRotationEvent, Error>
fn try_from(event: &ContractEvent) -> Result<ComplianceKeyRotationEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for CreateAccountEvent
impl TryFrom<&ContractEvent> for CreateAccountEvent
§fn try_from(event: &ContractEvent) -> Result<CreateAccountEvent, Error>
fn try_from(event: &ContractEvent) -> Result<CreateAccountEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for MintEvent
impl TryFrom<&ContractEvent> for MintEvent
§impl TryFrom<&ContractEvent> for NewBlockEvent
impl TryFrom<&ContractEvent> for NewBlockEvent
§fn try_from(event: &ContractEvent) -> Result<NewBlockEvent, Error>
fn try_from(event: &ContractEvent) -> Result<NewBlockEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for NewEpochEvent
impl TryFrom<&ContractEvent> for NewEpochEvent
§fn try_from(event: &ContractEvent) -> Result<NewEpochEvent, Error>
fn try_from(event: &ContractEvent) -> Result<NewEpochEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for PreburnEvent
impl TryFrom<&ContractEvent> for PreburnEvent
§fn try_from(event: &ContractEvent) -> Result<PreburnEvent, Error>
fn try_from(event: &ContractEvent) -> Result<PreburnEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for ReceivedMintEvent
impl TryFrom<&ContractEvent> for ReceivedMintEvent
§fn try_from(event: &ContractEvent) -> Result<ReceivedMintEvent, Error>
fn try_from(event: &ContractEvent) -> Result<ReceivedMintEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for ReceivedPaymentEvent
impl TryFrom<&ContractEvent> for ReceivedPaymentEvent
§fn try_from(event: &ContractEvent) -> Result<ReceivedPaymentEvent, Error>
fn try_from(event: &ContractEvent) -> Result<ReceivedPaymentEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for SentPaymentEvent
impl TryFrom<&ContractEvent> for SentPaymentEvent
§fn try_from(event: &ContractEvent) -> Result<SentPaymentEvent, Error>
fn try_from(event: &ContractEvent) -> Result<SentPaymentEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for ToXDXExchangeRateUpdateEvent
impl TryFrom<&ContractEvent> for ToXDXExchangeRateUpdateEvent
§fn try_from(
event: &ContractEvent
) -> Result<ToXDXExchangeRateUpdateEvent, Error>
fn try_from( event: &ContractEvent ) -> Result<ToXDXExchangeRateUpdateEvent, Error>
Performs the conversion.
§impl TryFrom<&ContractEvent> for VASPDomainEvent
impl TryFrom<&ContractEvent> for VASPDomainEvent
§fn try_from(event: &ContractEvent) -> Result<VASPDomainEvent, Error>
fn try_from(event: &ContractEvent) -> Result<VASPDomainEvent, Error>
Performs the conversion.
§impl TryFrom<ContractEvent> for EventDataView
impl TryFrom<ContractEvent> for EventDataView
§fn try_from(event: ContractEvent) -> Result<EventDataView, Error>
fn try_from(event: ContractEvent) -> Result<EventDataView, Error>
Performs the conversion.
impl Eq for ContractEvent
impl StructuralEq for ContractEvent
impl StructuralPartialEq for ContractEvent
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.