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,
},
InvalidRefundTo {
account_id: String,
},
}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
},
{
"description": "The `refund_to` of an ActionReceipt is not valid.",
"type": "object",
"required": [
"InvalidRefundTo"
],
"properties": {
"InvalidRefundTo": {
"type": "object",
"required": [
"account_id"
],
"properties": {
"account_id": {
"type": "string"
}
}
}
},
"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.
InvalidRefundTo
The refund_to of an ActionReceipt is not valid.
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§fn clone_from(&mut self, source: &Self)
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<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
Source§impl Display for ReceiptValidationError
impl Display for ReceiptValidationError
Source§impl Error for ReceiptValidationError
impl Error for ReceiptValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&ReceiptValidationError> for ReceiptValidationError
impl From<&ReceiptValidationError> for ReceiptValidationError
Source§fn from(value: &ReceiptValidationError) -> Self
fn from(value: &ReceiptValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ActionsValidationError> for ReceiptValidationError
impl From<ActionsValidationError> for ReceiptValidationError
Source§fn from(value: ActionsValidationError) -> Self
fn from(value: ActionsValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ReceiptValidationError> for ActionErrorKind
impl From<ReceiptValidationError> for ActionErrorKind
Source§fn from(value: ReceiptValidationError) -> Self
fn from(value: ReceiptValidationError) -> Self
Converts to this type from the input type.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.