pub enum AddressError {
InvalidBech32String {
invalid_value: String,
},
CannotConvertToBech32String,
}Expand description
Enumerates the errors that can occur within operations related to the Address struct.
This enum encapsulates specific error cases encountered when working with the Address
struct, such as converting to and from Bech32 string representation.
When an AddressError occurs, it can be converted into a DataError which serves as
a centralized error type for broader error handling.
§Variants
InvalidBech32String: Represents an error case where an invalid Bech32 string is provided.CannotConvertToBech32String: Represents an error case where anAddresscannot be converted to its Bech32 string representation.
Variants§
InvalidBech32String
Represents an error case where an invalid Bech32 string is provided.
Fields
CannotConvertToBech32String
Represents an error case where an Address cannot be converted to its Bech32 string representation.
Trait Implementations§
Source§impl Clone for AddressError
impl Clone for AddressError
Source§fn clone(&self) -> AddressError
fn clone(&self) -> AddressError
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 AddressError
impl Debug for AddressError
Source§impl<'de> Deserialize<'de> for AddressError
impl<'de> Deserialize<'de> for AddressError
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 From<AddressError> for DataError
Provides a conversion from AddressError to DataError.
impl From<AddressError> for DataError
Provides a conversion from AddressError to DataError.
This implementation allows for an AddressError to be converted into a DataError,
facilitating centralized error handling.
Source§fn from(value: AddressError) -> Self
fn from(value: AddressError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AddressError
impl PartialEq for AddressError
Source§impl Serialize for AddressError
impl Serialize for AddressError
impl StructuralPartialEq for AddressError
Auto Trait Implementations§
impl Freeze for AddressError
impl RefUnwindSafe for AddressError
impl Send for AddressError
impl Sync for AddressError
impl Unpin for AddressError
impl UnwindSafe for AddressError
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more