#[repr(i32)]pub enum ContractTypeView<'a> {
Show 20 variants
Void = 0,
Bool = 1,
U32 = 2,
I32 = 3,
U64 = 4,
I64 = 5,
U128 = 6,
I128 = 7,
String = 8,
Bytes = 9,
Address = 10,
Option(&'a ContractTypeView<'a>),
Vector(ContractVectorTypeView<'a>),
Tuple(&'a [ContractTypeView<'a>]),
Named(ContractSpecIdView<'a>),
U8 = 15,
Array(ContractArrayTypeView<'a>),
SignedToken(Option<&'a ContractTypeView<'a>>),
U256 = 18,
I256 = 19,
}Variants§
Void = 0
Bool = 1
U32 = 2
I32 = 3
U64 = 4
I64 = 5
U128 = 6
I128 = 7
String = 8
Bytes = 9
Address = 10
Option(&'a ContractTypeView<'a>)
Vector(ContractVectorTypeView<'a>)
Tuple(&'a [ContractTypeView<'a>])
Named(ContractSpecIdView<'a>)
U8 = 15
Array(ContractArrayTypeView<'a>)
SignedToken(Option<&'a ContractTypeView<'a>>)
A signed auth token whose preimage has the referenced type, or
None for a type-erased (opaque) payload. Encodes identically to
the owned model’s ContractSignedTokenPreimage wrapper (a single
optional ContractType field). Consumes no calldata bytes; the
token handle arrives out of band.
U256 = 18
I256 = 19
Implementations§
Source§impl<'a> ContractTypeView<'a>
impl<'a> ContractTypeView<'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 ContractTypeView<'a>
impl<'a> Clone for ContractTypeView<'a>
impl<'a> Copy for ContractTypeView<'a>
Source§impl<'a> Debug for ContractTypeView<'a>
impl<'a> Debug for ContractTypeView<'a>
impl<'a> EncodesAs<ContractTypeView<'a>> for ContractTypeView<'a>
impl<'a> Eq for ContractTypeView<'a>
Source§impl From<ContractTypeView<'_>> for ContractType
Available on crate feature owned-model only.
impl From<ContractTypeView<'_>> for ContractType
Available on crate feature
owned-model only.Source§fn from(value: ContractTypeView<'_>) -> Self
fn from(value: ContractTypeView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ContractTypeView<'a>
impl<'a> PartialEq for ContractTypeView<'a>
impl<'a> StructuralPartialEq for ContractTypeView<'a>
Source§impl<'a> WriteXDR for ContractTypeView<'a>
impl<'a> WriteXDR for ContractTypeView<'a>
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<'a> Freeze for ContractTypeView<'a>
impl<'a> RefUnwindSafe for ContractTypeView<'a>
impl<'a> Send for ContractTypeView<'a>
impl<'a> Sync for ContractTypeView<'a>
impl<'a> Unpin for ContractTypeView<'a>
impl<'a> UnsafeUnpin for ContractTypeView<'a>
impl<'a> UnwindSafe for ContractTypeView<'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