pub enum TriggerData {
CosmosContractEvent {
contract_address: CosmosAddr,
chain: ChainKey,
event: Event,
block_height: u64,
event_index: u64,
},
EvmContractEvent {
chain: ChainKey,
contract_address: Address,
log_data: LogData,
tx_hash: TxHash,
block_number: u64,
log_index: u64,
block_hash: B256,
block_timestamp: Option<u64>,
tx_index: u64,
},
BlockInterval {
chain: ChainKey,
block_height: u64,
},
Cron {
trigger_time: Timestamp,
},
AtProtoEvent {
sequence: i64,
timestamp: i64,
repo: String,
collection: String,
rkey: String,
action: AtProtoAction,
cid: Option<String>,
record: Option<Value>,
rev: Option<String>,
op_index: Option<u32>,
},
HypercoreAppend {
feed_key: String,
index: u64,
data: Vec<u8>,
},
Raw(Vec<u8>),
}Expand description
The data that came from the trigger and is passed to the component after being converted into the WIT-friendly type
Variants§
CosmosContractEvent
Fields
§
contract_address: CosmosAddrThe address of the contract that emitted the event
EvmContractEvent
Fields
§
block_timestamp: Option<u64>The timestamp of the block containing this event, as proposed in https://github.com/ethereum/execution-apis/issues/295 This field is optional since nodes are not required to include it in event logs. If not provided, applications may need to fetch the block header directly to obtain the timestamp.
BlockInterval
Fields
Cron
AtProtoEvent
ATProto Jetstream event data
Fields
§
action: AtProtoActionAction type (create, update, delete)
HypercoreAppend
Fields
Raw(Vec<u8>)
Implementations§
Trait Implementations§
Source§impl Clone for TriggerData
impl Clone for TriggerData
Source§fn clone(&self) -> TriggerData
fn clone(&self) -> TriggerData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for TriggerData
impl ComposeSchema for TriggerData
Source§impl Debug for TriggerData
impl Debug for TriggerData
Source§impl Default for TriggerData
impl Default for TriggerData
Source§impl<'de> Deserialize<'de> for TriggerData
impl<'de> Deserialize<'de> for TriggerData
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 TriggerData
Source§impl PartialEq for TriggerData
impl PartialEq for TriggerData
Source§fn eq(&self, other: &TriggerData) -> bool
fn eq(&self, other: &TriggerData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TriggerData
impl Serialize for TriggerData
impl StructuralPartialEq for TriggerData
Auto Trait Implementations§
impl !Freeze for TriggerData
impl RefUnwindSafe for TriggerData
impl Send for TriggerData
impl Sync for TriggerData
impl Unpin for TriggerData
impl UnsafeUnpin for TriggerData
impl UnwindSafe for TriggerData
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<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§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