#[repr(i32)]pub enum SpecFragment {
SpecInterface {
interface_fragment: SpecInterfaceFragment,
},
SpecMethod {
method_fragment: SpecMethodFragment,
},
SpecTypeDef {
type_def: ContractTypeDef,
},
ExportedSpecTypeDef {
type_def: ContractTypeDef,
},
SpecEvent {
event_def: ContractEventDef,
},
ExportedSpecEvent {
event_def: ContractEventDef,
},
InterfaceAnchor {
interface_anchor: SpecInterfaceAnchor,
},
}Variants§
SpecInterface
Fields
§
interface_fragment: SpecInterfaceFragmentSpecMethod
Fields
§
method_fragment: SpecMethodFragmentSpecTypeDef
Fields
§
type_def: ContractTypeDefExportedSpecTypeDef
Fields
§
type_def: ContractTypeDefSpecEvent
Fields
§
event_def: ContractEventDefExportedSpecEvent
Fields
§
event_def: ContractEventDefInterfaceAnchor
Fields
§
interface_anchor: SpecInterfaceAnchorTrait Implementations§
Source§impl Clone for SpecFragment
impl Clone for SpecFragment
Source§impl ConstMaxSize for SpecFragment
impl ConstMaxSize for SpecFragment
Source§impl ConstMaxSize for SpecFragment
impl ConstMaxSize for SpecFragment
Source§impl Debug for SpecFragment
impl Debug for SpecFragment
impl EncodesAs<SpecFragment> for SpecFragment
impl Eq for SpecFragment
Source§impl From<SpecFragmentView<'_>> for SpecFragment
Available on crate feature owned-model only.
impl From<SpecFragmentView<'_>> for SpecFragment
Available on crate feature
owned-model only.Source§fn from(value: SpecFragmentView<'_>) -> Self
fn from(value: SpecFragmentView<'_>) -> Self
Converts to this type from the input type.
Source§impl Hash for SpecFragment
impl Hash for SpecFragment
Source§impl Ord for SpecFragment
impl Ord for SpecFragment
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 SpecFragment
impl PartialEq for SpecFragment
Source§impl PartialOrd for SpecFragment
impl PartialOrd for SpecFragment
Source§impl<'_r> ReadXDR<'_r> for SpecFragment
impl<'_r> ReadXDR<'_r> for SpecFragment
impl StructuralPartialEq for SpecFragment
Source§impl WriteXDR for SpecFragment
impl WriteXDR for SpecFragment
Source§fn write_xdr<F, W: Writer<F>>(
&self,
__write_xdr_writer: &mut W,
) -> WriteResult<()>
fn write_xdr<F, W: Writer<F>>( &self, __write_xdr_writer: &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,
__write_xdr_writer: &mut W,
)
unsafe fn write_xdr_unchecked<F, W: WriterUnchecked<F>>( &self, __write_xdr_writer: &mut W, )
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for SpecFragment
impl RefUnwindSafe for SpecFragment
impl Send for SpecFragment
impl Sync for SpecFragment
impl Unpin for SpecFragment
impl UnsafeUnpin for SpecFragment
impl UnwindSafe for SpecFragment
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