pub enum ReceiptValidationError {
InvalidPredecessorId {
account_id: String,
},
InvalidReceiverId {
account_id: String,
},
InvalidSignerId {
account_id: String,
},
InvalidDataReceiverId {
account_id: String,
},
ReturnedValueLengthExceeded {
length: u64,
limit: u64,
},
NumberInputDataDependenciesExceeded {
number_of_input_data_dependencies: u64,
limit: u64,
},
ActionsValidation(ActionsValidationError),
}Expand description
Describes the error for validating a receipt.
Variants
InvalidPredecessorId
Fields
account_id: StringThe predecessor_id of a Receipt is not valid.
InvalidReceiverId
Fields
account_id: StringThe receiver_id of a Receipt is not valid.
InvalidSignerId
Fields
account_id: StringThe signer_id of an ActionReceipt is not valid.
InvalidDataReceiverId
Fields
account_id: StringThe receiver_id of a DataReceiver within an ActionReceipt is not valid.
ReturnedValueLengthExceeded
The length of the returned data exceeded the limit in a DataReceipt.
NumberInputDataDependenciesExceeded
The number of input data dependencies exceeds the limit in an ActionReceipt.
ActionsValidation(ActionsValidationError)
An error occurred while validating actions of an ActionReceipt.
Trait Implementations
sourceimpl BorshDeserialize for ReceiptValidationErrorwhere
String: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
ActionsValidationError: BorshDeserialize,
impl BorshDeserialize for ReceiptValidationErrorwhere
String: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
ActionsValidationError: BorshDeserialize,
sourceimpl BorshSerialize for ReceiptValidationErrorwhere
String: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
ActionsValidationError: BorshSerialize,
impl BorshSerialize for ReceiptValidationErrorwhere
String: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
ActionsValidationError: BorshSerialize,
sourceimpl Clone for ReceiptValidationError
impl Clone for ReceiptValidationError
sourcefn clone(&self) -> ReceiptValidationError
fn clone(&self) -> ReceiptValidationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ReceiptValidationError
impl Debug for ReceiptValidationError
sourceimpl<'de> Deserialize<'de> for ReceiptValidationError
impl<'de> Deserialize<'de> for ReceiptValidationError
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for ReceiptValidationError
impl Display for ReceiptValidationError
sourceimpl Error for ReceiptValidationError
impl Error for ReceiptValidationError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<ReceiptValidationError> for ReceiptValidationError
impl PartialEq<ReceiptValidationError> for ReceiptValidationError
sourcefn eq(&self, other: &ReceiptValidationError) -> bool
fn eq(&self, other: &ReceiptValidationError) -> bool
sourceimpl Serialize for ReceiptValidationError
impl Serialize for ReceiptValidationError
impl Eq for ReceiptValidationError
impl StructuralEq for ReceiptValidationError
impl StructuralPartialEq for ReceiptValidationError
Auto Trait Implementations
impl RefUnwindSafe for ReceiptValidationError
impl Send for ReceiptValidationError
impl Sync for ReceiptValidationError
impl Unpin for ReceiptValidationError
impl UnwindSafe for ReceiptValidationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more