pub struct ContractUnionCaseView<'a> {
pub name: &'a str,
pub discriminant: i32,
pub case_type: ContractUnionCaseTypeView<'a>,
}Fields§
§name: &'a str§discriminant: i32§case_type: ContractUnionCaseTypeView<'a>Implementations§
Source§impl<'a> ContractUnionCaseView<'a>
impl<'a> ContractUnionCaseView<'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 ContractUnionCaseView<'a>
impl<'a> Clone for ContractUnionCaseView<'a>
impl<'a> Copy for ContractUnionCaseView<'a>
Source§impl<'a> Debug for ContractUnionCaseView<'a>
impl<'a> Debug for ContractUnionCaseView<'a>
impl<'a> EncodesAs<ContractUnionCaseView<'a>> for ContractUnionCaseView<'a>
impl<'a> Eq for ContractUnionCaseView<'a>
Source§impl From<ContractUnionCaseView<'_>> for ContractUnionCase
Available on crate feature owned-model only.
impl From<ContractUnionCaseView<'_>> for ContractUnionCase
Available on crate feature
owned-model only.Source§fn from(value: ContractUnionCaseView<'_>) -> Self
fn from(value: ContractUnionCaseView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ContractUnionCaseView<'a>
impl<'a> PartialEq for ContractUnionCaseView<'a>
impl<'a> StructuralPartialEq for ContractUnionCaseView<'a>
Source§impl<'a> WriteXDR for ContractUnionCaseView<'a>
impl<'a> WriteXDR for ContractUnionCaseView<'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 ContractUnionCaseView<'a>
impl<'a> RefUnwindSafe for ContractUnionCaseView<'a>
impl<'a> Send for ContractUnionCaseView<'a>
impl<'a> Sync for ContractUnionCaseView<'a>
impl<'a> Unpin for ContractUnionCaseView<'a>
impl<'a> UnsafeUnpin for ContractUnionCaseView<'a>
impl<'a> UnwindSafe for ContractUnionCaseView<'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