pub struct ContractEvent {
pub name: String,
pub doc: String,
pub prefix_topics: Vec<String>,
pub params: Vec<EventParam>,
pub data_format: String,
}Expand description
A declared Soroban event.
The full XDR signature (prefix_topics, params, data_format) is
retained so that an event which keeps its name but changes its shape is
still comparable — see crate::spec_diff.
Fields§
§name: StringEvent name.
doc: StringDoc comment, if any.
prefix_topics: Vec<String>Topic symbols emitted before the declared params.
params: Vec<EventParam>Ordered event parameters, each carrying its topic-list-vs-data location.
data_format: StringXDR data format (single_value / vec / map).
Trait Implementations§
Source§impl Clone for ContractEvent
impl Clone for ContractEvent
Source§impl Debug for ContractEvent
impl Debug for ContractEvent
Source§impl<'de> Deserialize<'de> for ContractEvent
impl<'de> Deserialize<'de> for ContractEvent
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 ContractEvent
Source§impl PartialEq for ContractEvent
impl PartialEq for ContractEvent
Source§impl Serialize for ContractEvent
impl Serialize for ContractEvent
impl StructuralPartialEq for ContractEvent
Auto Trait Implementations§
impl Freeze for ContractEvent
impl RefUnwindSafe for ContractEvent
impl Send for ContractEvent
impl Sync for ContractEvent
impl Unpin for ContractEvent
impl UnsafeUnpin for ContractEvent
impl UnwindSafe for ContractEvent
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.