#[non_exhaustive]pub enum DecodedContent {
Utf8(String),
Base64(String),
}Expand description
Complete decoded bytes, without a lossy UTF-8 conversion.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Utf8(String)
UTF-8 text, including JSON and unknown text protocols.
Base64(String)
Base64 of a binary payload.
Trait Implementations§
Source§impl Debug for DecodedContent
impl Debug for DecodedContent
Source§impl<'de> Deserialize<'de> for DecodedContent
impl<'de> Deserialize<'de> for DecodedContent
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
Auto Trait Implementations§
impl Forget for DecodedContent
impl Freeze for DecodedContent
impl RefUnwindSafe for DecodedContent
impl Send for DecodedContent
impl Sync for DecodedContent
impl Unpin for DecodedContent
impl UnsafeUnpin for DecodedContent
impl UnwindSafe for DecodedContent
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