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 {
limit: u64,
number_of_input_data_dependencies: u64,
},
ActionsValidation(ActionsValidationError),
ReceiptSizeExceeded {
limit: u64,
size: u64,
},
}Expand description
Describes the error for validating a receipt.
JSON schema
{
"description": "Describes the error for validating a receipt.",
"oneOf": [
{
"description": "The `predecessor_id` of a Receipt is not valid.",
"type": "object",
"required": [
"InvalidPredecessorId"
],
"properties": {
"InvalidPredecessorId": {
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "The `receiver_id` of a Receipt is not valid.",
"type": "object",
"required": [
"InvalidReceiverId"
],
"properties": {
"InvalidReceiverId": {
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "The `signer_id` of an ActionReceipt is not valid.",
"type": "object",
"required": [
"InvalidSignerId"
],
"properties": {
"InvalidSignerId": {
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "The `receiver_id` of a DataReceiver within an ActionReceipt is not valid.",
"type": "object",
"required": [
"InvalidDataReceiverId"
],
"properties": {
"InvalidDataReceiverId": {
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"type": "string"
}
}
}
},
"additionalProperties": false
},
{
"description": "The length of the returned data exceeded the limit in a DataReceipt.",
"type": "object",
"required": [
"ReturnedValueLengthExceeded"
],
"properties": {
"ReturnedValueLengthExceeded": {
"type": "object",
"required": [
"length",
"limit"
],
"properties": {
"length": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"limit": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"description": "The number of input data dependencies exceeds the limit in an ActionReceipt.",
"type": "object",
"required": [
"NumberInputDataDependenciesExceeded"
],
"properties": {
"NumberInputDataDependenciesExceeded": {
"type": "object",
"required": [
"limit",
"number_of_input_data_dependencies"
],
"properties": {
"limit": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"number_of_input_data_dependencies": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
},
{
"description": "An error occurred while validating actions of an ActionReceipt.",
"type": "object",
"required": [
"ActionsValidation"
],
"properties": {
"ActionsValidation": {
"$ref": "#/components/schemas/ActionsValidationError"
}
},
"additionalProperties": false
},
{
"description": "Receipt is bigger than the limit.",
"type": "object",
"required": [
"ReceiptSizeExceeded"
],
"properties": {
"ReceiptSizeExceeded": {
"type": "object",
"required": [
"limit",
"size"
],
"properties": {
"limit": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"size": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
},
"additionalProperties": false
}
]
}Variants§
InvalidPredecessorId
The predecessor_id of a Receipt is not valid.
InvalidReceiverId
The receiver_id of a Receipt is not valid.
InvalidSignerId
The signer_id of an ActionReceipt is not valid.
InvalidDataReceiverId
The 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.
ReceiptSizeExceeded
Receipt is bigger than the limit.
Trait Implementations§
Source§impl Clone for ReceiptValidationError
impl Clone for ReceiptValidationError
Source§fn clone(&self) -> ReceiptValidationError
fn clone(&self) -> ReceiptValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReceiptValidationError
impl Debug for ReceiptValidationError
Source§impl<'de> Deserialize<'de> for ReceiptValidationError
impl<'de> Deserialize<'de> for ReceiptValidationError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptValidationError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReceiptValidationError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ReceiptValidationError> for ReceiptValidationError
impl From<&ReceiptValidationError> for ReceiptValidationError
Source§fn from(value: &ReceiptValidationError) -> ReceiptValidationError
fn from(value: &ReceiptValidationError) -> ReceiptValidationError
Converts to this type from the input type.
Source§impl From<ActionsValidationError> for ReceiptValidationError
impl From<ActionsValidationError> for ReceiptValidationError
Source§fn from(value: ActionsValidationError) -> ReceiptValidationError
fn from(value: ActionsValidationError) -> ReceiptValidationError
Converts to this type from the input type.
Source§impl From<ReceiptValidationError> for ActionErrorKind
impl From<ReceiptValidationError> for ActionErrorKind
Source§fn from(value: ReceiptValidationError) -> ActionErrorKind
fn from(value: ReceiptValidationError) -> ActionErrorKind
Converts to this type from the input type.
Source§impl Serialize for ReceiptValidationError
impl Serialize for ReceiptValidationError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ReceiptValidationError
impl RefUnwindSafe for ReceiptValidationError
impl Send for ReceiptValidationError
impl Sync for ReceiptValidationError
impl Unpin for ReceiptValidationError
impl UnwindSafe for ReceiptValidationError
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