fn encode_claims(claims: &Claims) -> String {
        let mut head = String::new();
        append_base64(GOOGLE_RS256_HEAD, &mut head);
        head.push('.');
        append_base64(&serde_json::to_string(&claims).unwrap(), &mut head);
        head
    }
/// Encodes the first two parts (header and claims) to base64 and assembles them into a form
/// ready to be signed.
Encodes the first two parts (header and claims) to base64 and assembles them into a form
ready to be signed.
Encodes the first two parts ( header and claims ) to base64 and assembles them into a form ready to be signed .
fn encode_claims(claims: &Claims) -> String {
        let mut head = String::new();
        append_base64(GOOGLE_RS256_HEAD, &mut head);
        head.push('.');
        append_base64(&serde_json::to_string(&claims).unwrap(), &mut head);
        head
    }
fn encode_claims ( claims : & Claims ) -> String { let mut head = String :: new ( ) ; append_base64 ( GOOGLE_RS256_HEAD , & mut head ) ; head . push ( '.' ) ; append_base64 ( & serde_json :: to_string ( & claims ) . unwrap ( ) , & mut head ) ; head }
Encodes the first two parts (header and claims) to base64 and assembles them into a form
ready to be signed.
Encodes the first two parts ( header and claims ) to base64 and assembles them into a form ready to be signed .
claims
&Claims