Enum simple_serde::ContentType
source · [−]pub enum ContentType {
Show 13 variants
Bson,
Cbor,
FlexBuffers,
Json,
Json5,
Lexpr,
MessagePack,
Pickle,
Postcard,
Ron,
Toml,
Url,
Yaml,
}Variants
Bson
Cbor
FlexBuffers
Json
Json5
Lexpr
MessagePack
Pickle
Postcard
Ron
Toml
Url
Yaml
Trait Implementations
sourceimpl Debug for ContentType
impl Debug for ContentType
sourceimpl PartialEq<ContentType> for ContentType
impl PartialEq<ContentType> for ContentType
sourceimpl TryFrom<&'_ ContentType> for ContentType
impl TryFrom<&'_ ContentType> for ContentType
sourcefn try_from(h: &ContentType) -> Result<ContentType, Self::Error>
fn try_from(h: &ContentType) -> Result<ContentType, Self::Error>
Performs the conversion.
sourceimpl TryFrom<&'_ String> for ContentType
impl TryFrom<&'_ String> for ContentType
sourceimpl TryFrom<&'_ str> for ContentType
impl TryFrom<&'_ str> for ContentType
sourceimpl TryFrom<String> for ContentType
impl TryFrom<String> for ContentType
impl Eq for ContentType
impl StructuralEq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.