pub struct SpecInterfaceFragment {
pub interface_name: ContractSpecString,
pub interface_version: ContractSpecString,
pub declared_by: ContractSpecId,
pub throws: VecM<ContractExceptionType>,
pub emits: VecM<ContractSpecId>,
}Fields§
§interface_name: ContractSpecString§interface_version: ContractSpecString§declared_by: ContractSpecIdThe item that declares this interface: the #[contract] trait’s spec
id (CRATE@MAJOR::module::path::Trait), or CRATE@MAJOR for a bare
impl or free-function contract. See SpecInterfaceAnchor::declared_by.
throws: VecM<ContractExceptionType>§emits: VecM<ContractSpecId>Trait Implementations§
Source§impl Clone for SpecInterfaceFragment
impl Clone for SpecInterfaceFragment
Source§impl ConstMaxSize for SpecInterfaceFragment
impl ConstMaxSize for SpecInterfaceFragment
Source§impl ConstMaxSize for SpecInterfaceFragment
impl ConstMaxSize for SpecInterfaceFragment
Source§impl Debug for SpecInterfaceFragment
impl Debug for SpecInterfaceFragment
impl EncodesAs<SpecInterfaceFragment> for SpecInterfaceFragment
impl Eq for SpecInterfaceFragment
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 Hash for SpecInterfaceFragment
impl Hash for SpecInterfaceFragment
Source§impl Ord for SpecInterfaceFragment
impl Ord for SpecInterfaceFragment
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SpecInterfaceFragment
impl PartialEq for SpecInterfaceFragment
Source§impl PartialOrd for SpecInterfaceFragment
impl PartialOrd for SpecInterfaceFragment
Source§impl<'_r> ReadXDR<'_r> for SpecInterfaceFragment
impl<'_r> ReadXDR<'_r> for SpecInterfaceFragment
Source§fn read_xdr<R: Reader<'_r>>(r: &mut R) -> ReadResult<Self>
fn read_xdr<R: Reader<'_r>>(r: &mut R) -> ReadResult<Self>
Reads an XDR value from the reader. Read more
Source§fn read_xdr_in_place<'__xdrs_s, R: Reader<'_r>>(
r: &mut R,
__xdrs_slot: Slot<'__xdrs_s, Self>,
) -> ReadResult<Init<'__xdrs_s, Self>>
fn read_xdr_in_place<'__xdrs_s, R: Reader<'_r>>( r: &mut R, __xdrs_slot: Slot<'__xdrs_s, Self>, ) -> ReadResult<Init<'__xdrs_s, Self>>
Reads an XDR value directly into
slot, without first building it
on the stack. Read moreimpl StructuralPartialEq for SpecInterfaceFragment
Source§impl WriteXDR for SpecInterfaceFragment
impl WriteXDR for SpecInterfaceFragment
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 Freeze for SpecInterfaceFragment
impl RefUnwindSafe for SpecInterfaceFragment
impl Send for SpecInterfaceFragment
impl Sync for SpecInterfaceFragment
impl Unpin for SpecInterfaceFragment
impl UnsafeUnpin for SpecInterfaceFragment
impl UnwindSafe for SpecInterfaceFragment
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