pub struct ContractEventDefView<'a> {
pub name: ContractSpecIdView<'a>,
pub signature: [u8; 32],
pub topics: &'a [ContractFieldView<'a>],
pub fields: &'a [ContractFieldView<'a>],
}Expand description
Describes an event emitted via the LogEvent syscall. Mirrors the owned
ContractEventDef: signature is topic 0, topics are the indexed
fields (topics 1..), and fields form the XDR-encoded payload.
Fields§
§name: ContractSpecIdView<'a>§signature: [u8; 32]§topics: &'a [ContractFieldView<'a>]§fields: &'a [ContractFieldView<'a>]Implementations§
Source§impl<'a> ContractEventDefView<'a>
impl<'a> ContractEventDefView<'a>
pub const fn const_write_cxs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
pub const fn const_write_txs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
Sourcepub const fn const_cxs_size(&self) -> usize
pub const fn const_cxs_size(&self) -> usize
Returns the CXS encoded size of this value in bytes.
Sourcepub const fn const_txs_size(&self) -> usize
pub const fn const_txs_size(&self) -> usize
Returns the TXS encoded size of this value in bytes.
Trait Implementations§
Source§impl<'a> Clone for ContractEventDefView<'a>
impl<'a> Clone for ContractEventDefView<'a>
impl<'a> Copy for ContractEventDefView<'a>
Source§impl<'a> Debug for ContractEventDefView<'a>
impl<'a> Debug for ContractEventDefView<'a>
impl<'a> EncodesAs<ContractEventDefView<'a>> for ContractEventDefView<'a>
impl<'a> Eq for ContractEventDefView<'a>
Source§impl From<ContractEventDefView<'_>> for ContractEventDef
Available on crate feature owned-model only.
impl From<ContractEventDefView<'_>> for ContractEventDef
Available on crate feature
owned-model only.Source§fn from(value: ContractEventDefView<'_>) -> Self
fn from(value: ContractEventDefView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ContractEventDefView<'a>
impl<'a> PartialEq for ContractEventDefView<'a>
impl<'a> StructuralPartialEq for ContractEventDefView<'a>
Source§impl<'a> WriteXDR for ContractEventDefView<'a>
impl<'a> WriteXDR for ContractEventDefView<'a>
Source§fn write_xdr<F, W: Writer<F>>(&self, w: &mut W) -> WriteResult<()>
fn write_xdr<F, W: Writer<F>>(&self, w: &mut W) -> WriteResult<()>
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(&self, w: &mut W)
unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>(&self, w: &mut W)
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl<'a> Freeze for ContractEventDefView<'a>
impl<'a> RefUnwindSafe for ContractEventDefView<'a>
impl<'a> Send for ContractEventDefView<'a>
impl<'a> Sync for ContractEventDefView<'a>
impl<'a> Unpin for ContractEventDefView<'a>
impl<'a> UnsafeUnpin for ContractEventDefView<'a>
impl<'a> UnwindSafe for ContractEventDefView<'a>
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