Struct lightning_signer::policy::error::ValidationError
source · pub struct ValidationError {
pub kind: ValidationErrorKind,
pub bt: Backtrace,
}
Expand description
Validation error
Fields§
§kind: ValidationErrorKind
The kind of error
bt: Backtrace
A non-resolved backtrace
Implementations§
source§impl ValidationError
impl ValidationError
sourcepub fn resolved_backtrace(&self) -> Backtrace
pub fn resolved_backtrace(&self) -> Backtrace
Resolve the backtrace for display to the user
sourcepub fn prepend_msg(&self, premsg: String) -> ValidationError
pub fn prepend_msg(&self, premsg: String) -> ValidationError
Return a new ValidationError with the message prepended
Trait Implementations§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a copy 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 ValidationError
impl Debug for ValidationError
source§impl Display for ValidationError
impl Display for ValidationError
source§impl From<ValidationError> for Status
impl From<ValidationError> for Status
source§fn from(ve: ValidationError) -> Self
fn from(ve: ValidationError) -> Self
Converts to this type from the input type.
source§impl Into<String> for ValidationError
impl Into<String> for ValidationError
source§impl PartialEq<ValidationError> for ValidationError
impl PartialEq<ValidationError> for ValidationError
source§fn eq(&self, other: &ValidationError) -> bool
fn eq(&self, other: &ValidationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.