pub enum ClaimValue {
Text(String),
Json(CanonicalJson),
Redacted,
}Variants§
Implementations§
Source§impl ClaimValue
impl ClaimValue
Sourcepub fn json(raw: &str) -> Result<Self, ValidationError>
pub fn json(raw: &str) -> Result<Self, ValidationError>
A canonical JSON claim value (see CanonicalJson). Errors on invalid JSON.
Trait Implementations§
Source§impl Clone for ClaimValue
impl Clone for ClaimValue
Source§fn clone(&self) -> ClaimValue
fn clone(&self) -> ClaimValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClaimValue
impl Debug for ClaimValue
Source§impl<'de> Deserialize<'de> for ClaimValue
impl<'de> Deserialize<'de> for ClaimValue
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 Eq for ClaimValue
Source§impl PartialEq for ClaimValue
impl PartialEq for ClaimValue
Source§fn eq(&self, other: &ClaimValue) -> bool
fn eq(&self, other: &ClaimValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClaimValue
impl Serialize for ClaimValue
impl StructuralPartialEq for ClaimValue
Auto Trait Implementations§
impl Freeze for ClaimValue
impl RefUnwindSafe for ClaimValue
impl Send for ClaimValue
impl Sync for ClaimValue
impl Unpin for ClaimValue
impl UnsafeUnpin for ClaimValue
impl UnwindSafe for ClaimValue
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