Struct concordium_std::NotPayableError
source · pub struct NotPayableError;
Expand description
Error triggered when a non-zero amount of CCD is sent to a contract
init or receive function that is not marked as payable
.
Trait Implementations§
source§impl Clone for NotPayableError
impl Clone for NotPayableError
source§fn clone(&self) -> NotPayableError
fn clone(&self) -> NotPayableError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NotPayableError
impl Debug for NotPayableError
source§impl From<NotPayableError> for Reject
impl From<NotPayableError> for Reject
The error code is i32::MIN + 12.
source§fn from(_: NotPayableError) -> Self
fn from(_: NotPayableError) -> Self
Converts to this type from the input type.
source§impl PartialEq for NotPayableError
impl PartialEq for NotPayableError
source§fn eq(&self, other: &NotPayableError) -> bool
fn eq(&self, other: &NotPayableError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NotPayableError
impl Eq for NotPayableError
impl StructuralPartialEq for NotPayableError
Auto Trait Implementations§
impl Freeze for NotPayableError
impl RefUnwindSafe for NotPayableError
impl Send for NotPayableError
impl Sync for NotPayableError
impl Unpin for NotPayableError
impl UnwindSafe for NotPayableError
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