pub enum Trigger {
CosmosContractEvent {
address: CosmosAddr,
chain: ChainKey,
event_type: String,
},
EvmContractEvent {
address: Address,
chain: ChainKey,
event_hash: ByteArray<32>,
},
BlockInterval {
chain: ChainKey,
n_blocks: NonZeroU32,
start_block: Option<NonZeroU64>,
end_block: Option<NonZeroU64>,
},
Cron {
schedule: String,
start_time: Option<Timestamp>,
end_time: Option<Timestamp>,
},
AtProtoEvent {
collection: String,
repo_did: Option<String>,
action: Option<AtProtoAction>,
},
HypercoreAppend {
feed_key: String,
},
Manual,
}Variants§
CosmosContractEvent
EvmContractEvent
BlockInterval
Fields
§
n_blocks: NonZeroU32Number of blocks to wait between each execution
§
start_block: Option<NonZeroU64>Optional start block height indicating when the interval begins.
§
end_block: Option<NonZeroU64>Optional end block height indicating when the interval begins.
Cron
Fields
AtProtoEvent
ATProto Jetstream event trigger
Fields
§
collection: StringCollection NSID to filter for (e.g., “app.bsky.feed.post”) Supports wildcards with prefix matching (e.g., “app.bsky.feed.*”)
§
repo_did: Option<String>Optional DID to filter for specific repositories If None, will match events from any repository
§
action: Option<AtProtoAction>Action type to filter for (create, update, delete) If None, will match all action types
HypercoreAppend
Hypercore append event trigger
Manual
Implementations§
Source§impl Trigger
impl Trigger
pub fn cosmos_contract_event( address: CosmosAddr, chain: impl TryInto<ChainKey, Error = ChainKeyError>, event_type: impl ToString, ) -> Self
pub fn evm_contract_event( address: Address, chain: impl TryInto<ChainKey, Error = ChainKeyError>, event_hash: ByteArray<32>, ) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trigger
impl<'de> Deserialize<'de> for Trigger
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 Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnsafeUnpin for Trigger
impl UnwindSafe for Trigger
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