pub enum ValidationError {
Config {
parameter: String,
},
InvalidInput {
field: String,
},
InvalidArgument {
argument: String,
},
InvalidAddress {
address: String,
},
DepositAddressValidationFailed {
address: String,
},
DepositTransactionNotFoundInNetwork {
txid: String,
},
InvalidKeyshareConfig {
config_id: String,
},
InvalidSequence {
sequence: u64,
},
InvalidUuid(Error),
InvalidBolt11Invoice(String),
TransferClaimDidNotUpdateBalance,
InvalidBitcoinNetwork(String),
}
Expand description
Errors related to input validation, parameter checking, and verification.
Variants§
Config
Invalid configuration parameter.
InvalidInput
Invalid input field value.
InvalidArgument
Invalid function argument.
InvalidAddress
Invalid Bitcoin address format.
DepositAddressValidationFailed
Deposit address validation failures.
DepositTransactionNotFoundInNetwork
Deposit transaction not found in the Bitcoin network.
Invalid keyshare configuration.
InvalidSequence
Invalid sequence number.
InvalidUuid(Error)
Invalid UUID format.
InvalidBolt11Invoice(String)
Invalid BOLT11 lightning invoice format.
TransferClaimDidNotUpdateBalance
Transfer claim did not update balance (integration tests only).
InvalidBitcoinNetwork(String)
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
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<Error> for ValidationError
impl From<Error> for ValidationError
Source§impl From<ValidationError> for SparkSdkError
impl From<ValidationError> for SparkSdkError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin 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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request