pub enum ValidationError {
EmptyTransaction,
MalformedEnvelope(String),
EmptyOperations,
FeeTooLow {
fee: u32,
min: u32,
},
InvalidSequence(i64),
MissingSourceAccount,
XdrTooLarge {
size: usize,
max: usize,
},
MissingFunctionName,
}Expand description
A hard validation failure.
Variants§
EmptyTransaction
An empty base64/raw payload was supplied.
MalformedEnvelope(String)
The payload could not be decoded as a TransactionEnvelope.
EmptyOperations
The envelope has zero operations.
FeeTooLow
The base fee is below the network minimum.
InvalidSequence(i64)
The sequence number is not a positive value.
MissingSourceAccount
The transaction has no source account (cannot be expressed).
XdrTooLarge
The serialized envelope exceeds MAX_XDR_SIZE.
MissingFunctionName
An InvokeHostFunction references a contract but the function name is empty.
Implementations§
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl<'de> Deserialize<'de> for ValidationError
impl<'de> Deserialize<'de> for ValidationError
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
impl Eq for ValidationError
Source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
Source§impl Serialize for ValidationError
impl Serialize for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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