pub struct ContractSpecMethodView<'a> {
pub name: &'a str,
pub args: &'a [ContractFieldView<'a>],
pub return_type: ContractTypeView<'a>,
pub effect: Option<ContractMethodEffectView>,
}Fields§
§name: &'a str§args: &'a [ContractFieldView<'a>]§return_type: ContractTypeView<'a>§effect: Option<ContractMethodEffectView>Implementations§
Source§impl<'a> ContractSpecMethodView<'a>
impl<'a> ContractSpecMethodView<'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 ContractSpecMethodView<'a>
impl<'a> Clone for ContractSpecMethodView<'a>
impl<'a> Copy for ContractSpecMethodView<'a>
Source§impl<'a> Debug for ContractSpecMethodView<'a>
impl<'a> Debug for ContractSpecMethodView<'a>
impl<'a> EncodesAs<ContractSpecMethodView<'a>> for ContractSpecMethodView<'a>
impl<'a> Eq for ContractSpecMethodView<'a>
Source§impl From<ContractSpecMethodView<'_>> for ContractSpecMethod
Available on crate feature owned-model only.
impl From<ContractSpecMethodView<'_>> for ContractSpecMethod
Available on crate feature
owned-model only.Source§fn from(value: ContractSpecMethodView<'_>) -> Self
fn from(value: ContractSpecMethodView<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for ContractSpecMethodView<'a>
impl<'a> PartialEq for ContractSpecMethodView<'a>
impl<'a> StructuralPartialEq for ContractSpecMethodView<'a>
Source§impl<'a> WriteXDR for ContractSpecMethodView<'a>
impl<'a> WriteXDR for ContractSpecMethodView<'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 ContractSpecMethodView<'a>
impl<'a> RefUnwindSafe for ContractSpecMethodView<'a>
impl<'a> Send for ContractSpecMethodView<'a>
impl<'a> Sync for ContractSpecMethodView<'a>
impl<'a> Unpin for ContractSpecMethodView<'a>
impl<'a> UnsafeUnpin for ContractSpecMethodView<'a>
impl<'a> UnwindSafe for ContractSpecMethodView<'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