pub struct Base64DecodeErrorConverter;Expand description
A helper structure that converts base64::DecodeError into a structured Error.
Trait Implementations§
Source§impl ErrorConverter for Base64DecodeErrorConverter
impl ErrorConverter for Base64DecodeErrorConverter
Source§fn convert(
error: &DecodeError,
text: String,
context: BTreeMap<String, Value>,
) -> Error
fn convert( error: &DecodeError, text: String, context: BTreeMap<String, Value>, ) -> Error
Converts a base64::DecodeError into a custom structured Error.
§Arguments
err- The error returned by thebase64crate.text- A human-readable error message.context- A mutable reference to aContextcontaining additional metadata.
§Returns
Returns a structured Error with kind DecodeBase64, message, and details.
Source§type Error = DecodeError
type Error = DecodeError
The associated error type being converted (e.g., a 3rd-party crate error).
Auto Trait Implementations§
impl Freeze for Base64DecodeErrorConverter
impl RefUnwindSafe for Base64DecodeErrorConverter
impl Send for Base64DecodeErrorConverter
impl Sync for Base64DecodeErrorConverter
impl Unpin for Base64DecodeErrorConverter
impl UnwindSafe for Base64DecodeErrorConverter
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