pub struct SpecInterfaceFragmentView<'a> {
pub interface_name: &'a str,
pub interface_version: &'a str,
pub declared_by: ContractSpecIdView<'a>,
pub throws: &'a [ContractExceptionTypeView<'a>],
pub emits: &'a [ContractSpecIdView<'a>],
}Fields§
§interface_name: &'a str§interface_version: &'a str§declared_by: ContractSpecIdView<'a>§throws: &'a [ContractExceptionTypeView<'a>]§emits: &'a [ContractSpecIdView<'a>]Names of the events this interface declares via emits(...).
References into the artifact’s event-def pool; the post-processor
retains only event defs referenced by a surviving interface (or
force-exported via #[event_spec(export)]).
Implementations§
Source§impl<'a> SpecInterfaceFragmentView<'a>
impl<'a> SpecInterfaceFragmentView<'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 SpecInterfaceFragmentView<'a>
impl<'a> Clone for SpecInterfaceFragmentView<'a>
impl<'a> Copy for SpecInterfaceFragmentView<'a>
Source§impl<'a> Debug for SpecInterfaceFragmentView<'a>
impl<'a> Debug for SpecInterfaceFragmentView<'a>
impl<'a> EncodesAs<SpecInterfaceFragmentView<'a>> for SpecInterfaceFragmentView<'a>
impl<'a> Eq for SpecInterfaceFragmentView<'a>
Source§impl From<SpecInterfaceFragmentView<'_>> for SpecInterfaceFragment
Available on crate feature owned-model only.
impl From<SpecInterfaceFragmentView<'_>> for SpecInterfaceFragment
Available on crate feature
owned-model only.Source§fn from(value: SpecInterfaceFragmentView<'_>) -> Self
fn from(value: SpecInterfaceFragmentView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for SpecInterfaceFragmentView<'a>
impl<'a> PartialEq for SpecInterfaceFragmentView<'a>
impl<'a> StructuralPartialEq for SpecInterfaceFragmentView<'a>
Source§impl<'a> WriteXDR for SpecInterfaceFragmentView<'a>
impl<'a> WriteXDR for SpecInterfaceFragmentView<'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 SpecInterfaceFragmentView<'a>
impl<'a> RefUnwindSafe for SpecInterfaceFragmentView<'a>
impl<'a> Send for SpecInterfaceFragmentView<'a>
impl<'a> Sync for SpecInterfaceFragmentView<'a>
impl<'a> Unpin for SpecInterfaceFragmentView<'a>
impl<'a> UnsafeUnpin for SpecInterfaceFragmentView<'a>
impl<'a> UnwindSafe for SpecInterfaceFragmentView<'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