pub enum BinaryConversionError {
WrongType {
expected: String,
actual: String,
},
Decode {
cause: DecodeError,
},
}Expand description
An error occurred while converting from an AttributeValue to Bytes.
Variants§
WrongType
The AttributeValue was not of the expected type.
Fields
Decode
The AttributeValue did not contain valid base64.
Fields
§
cause: DecodeErrorThe underlying decode error.
Trait Implementations§
Source§impl Debug for BinaryConversionError
impl Debug for BinaryConversionError
Source§impl Display for BinaryConversionError
impl Display for BinaryConversionError
Source§impl Error for BinaryConversionError
impl Error for BinaryConversionError
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<DecodeError> for BinaryConversionError
impl From<DecodeError> for BinaryConversionError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinaryConversionError
impl RefUnwindSafe for BinaryConversionError
impl Send for BinaryConversionError
impl Sync for BinaryConversionError
impl Unpin for BinaryConversionError
impl UnwindSafe for BinaryConversionError
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