pub enum Any {
None,
String(Cow<'static, str>),
Bool(bool),
Number(isize),
Array(Vec<Any>),
Object(HashMap<Cow<'static, str>, Any>),
}Expand description
A type similar to serde_json::Value that can be serialized and deserialized
from a JWT token.
Variants§
None
String(Cow<'static, str>)
Bool(bool)
Number(isize)
Array(Vec<Any>)
Object(HashMap<Cow<'static, str>, Any>)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Any
impl<'de> Deserialize<'de> for Any
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
impl StructuralPartialEq for Any
Auto Trait Implementations§
impl Freeze for Any
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
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