pub struct StellarEvent {
pub event_type: String,
pub ledger: u32,
pub ledger_closed_at: String,
pub contract_id: String,
pub id: String,
pub paging_token: String,
pub in_successful_contract_call: bool,
pub transaction_hash: String,
pub topic_xdr: Option<Vec<String>>,
pub topic_json: Option<Vec<Value>>,
pub value_xdr: Option<String>,
pub value_json: Option<Value>,
}
Expand description
Represents a contract event emitted during transaction execution
This structure represents the response from the Stellar RPC endpoint and matches the format defined in the stellar-rpc repository.
Fields§
§event_type: String
Type of the event
ledger: u32
Ledger sequence number containing this event
ledger_closed_at: String
Timestamp when the ledger was closed
contract_id: String
Contract address that emitted the event
id: String
Unique identifier for this event
paging_token: String
Deprecated: Use cursor at top level for pagination
in_successful_contract_call: bool
Whether the event was emitted during a successful contract call
transaction_hash: String
Transaction hash that generated this event
topic_xdr: Option<Vec<String>>
Base64-encoded list of ScVals representing the event topics
topic_json: Option<Vec<Value>>
Decoded JSON representation of the event topics
value_xdr: Option<String>
Base64-encoded ScVal representing the event value
value_json: Option<Value>
Decoded JSON representation of the event value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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