pub enum Base64Error {
InvalidCharacters(String),
InvalidPadding(String),
}Expand description
Error type for Base64 validation
Variants§
InvalidCharacters(String)
String contains invalid Base64 characters
InvalidPadding(String)
Invalid padding
Trait Implementations§
Source§impl Clone for Base64Error
impl Clone for Base64Error
Source§fn clone(&self) -> Base64Error
fn clone(&self) -> Base64Error
Returns a duplicate 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 Base64Error
impl Debug for Base64Error
Source§impl Display for Base64Error
impl Display for Base64Error
Source§impl Error for Base64Error
impl Error for Base64Error
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for Base64Error
impl RefUnwindSafe for Base64Error
impl Send for Base64Error
impl Sync for Base64Error
impl Unpin for Base64Error
impl UnsafeUnpin for Base64Error
impl UnwindSafe for Base64Error
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