pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error> {
        let input = bytes.to_vec();

        Self::from_string(&String::from_utf8(input).map_err(|_| Error::ClaimInvalidUtf8)?)
    }
/// Attempt to create `Claims` from a sequence of bytes.
///
/// Errors:
/// - `bytes` contains non-UTF-8 sequences
/// - `bytes` does not decode as valid JSON
/// - `bytes` top-most JSON object does not decode to a map
/// - if any registered claims exist and they are not a `String`
/// - if `exp`, `nbf` or `iat` exist and they cannot be parsed as `DateTime`
Attempt to create `Claims` from a sequence of bytes.
Attempt to create ` Claims ` from a sequence of bytes .
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error> {
        let input = bytes.to_vec();
        Self::from_string(&String::from_utf8(input).map_err(|_| Error::ClaimInvalidUtf8)?)
    }
pub fn from_bytes ( bytes : & [ u8 ] ) -> Result < Self , Error > { let input = bytes . to_vec ( ) ; Self :: from_string ( & String :: from_utf8 ( input ) . map_err ( | _ | Error :: ClaimInvalidUtf8 ) ? ) }
Attempt to create `Claims` from a sequence of bytes.
Attempt to create ` Claims ` from a sequence of bytes .
bytes
&[u8]