pub struct EventResponse {
pub event_type: EventType,
pub ledger: u64,
pub ledger_closed_at: String,
pub contract_id: String,
pub id: String,
pub operation_index: Option<u32>,
pub transaction_index: Option<u32>,
pub tx_hash: String,
pub paging_token: Option<String>,
pub in_successful_contract_call: bool,
/* private fields */
}
Expand description
Event data
Fields§
§event_type: EventType
The type of event emission.
ledger: u64
Sequence number of the ledger in which this event was emitted.
ledger_closed_at: String
ISO-8601 timestamp of the ledger closing time
contract_id: String
StrKey
representation of the contract address that emitted this event.
id: String
Unique identifier for this event.
The event’s unique id field is based on a toid from Horizon as used in Horizon’s /effects endpoint.
Specifically, it is a string containing:
- bigint(32 bit ledger sequence + 20 bit txn number + 12 bit operation) + <hyphen> + number for the event within the operation. For example: 1234-1
operation_index: Option<u32>
The index of the operation in the transaction
transaction_index: Option<u32>
The index of the transaction in the ledger
tx_hash: String
The transaction which triggered this event.
paging_token: Option<String>
Duplicate of id
field, but in the standard place for pagination tokens.
Since protocol 23: This field is no longer present
in_successful_contract_call: bool
If true the event was emitted during a successful contract call.
Deprecated: will be remove in protocol 24
Implementations§
Trait Implementations§
Source§impl Debug for EventResponse
impl Debug for EventResponse
Source§impl<'de> Deserialize<'de> for EventResponse
impl<'de> Deserialize<'de> for EventResponse
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
Auto Trait Implementations§
impl Freeze for EventResponse
impl RefUnwindSafe for EventResponse
impl Send for EventResponse
impl Sync for EventResponse
impl Unpin for EventResponse
impl UnwindSafe for EventResponse
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