fn decode_payload(payload_segment: &str) -> Result<JsonValue, Error> {
    serde_json::from_slice(
        b64_dec(payload_segment, base64::URL_SAFE)?
            .as_slice(),
    ).map_err(Error::from)
}
/// Decodes the payload section of the token using a base 64 decoder.
///
/// Taken from frank_jwt source
Decodes the payload section of the token using a base 64 decoder.
Taken from frank_jwt source
Decodes the payload section of the token using a base 64 decoder . Taken from frank_jwt source
fn decode_payload(payload_segment: &str) -> Result<JsonValue, Error> {
    serde_json::from_slice(
        b64_dec(payload_segment, base64::URL_SAFE)?
            .as_slice(),
    ).map_err(Error::from)
}
fn decode_payload ( payload_segment : & str ) -> Result < JsonValue , Error > { serde_json :: from_slice ( b64_dec ( payload_segment , base64 :: URL_SAFE ) ? . as_slice ( ) , ) . map_err ( Error :: from ) }
Decodes the payload section of the token using a base 64 decoder.
Decodes the payload section of the token using a base 64 decoder .
payload_segment
&str
payload_segment
&str