pub fn serialize_flattened(&self) -> String {
        let payload = self.data.payload.clone();
        let protected_header = self.data.protected_header_serialized.clone();
        let signature = self.signature.clone();
        let s = FlattenedRaw {
            payload,
            protected_header,
            signature,
            signatures: (),
            unprotected_header: (),
        };
        // This shouldn't fail, because FlattenedRaw strucs are
        // always representable in JSON
        serde_json::to_string(&s).expect("Failed to serialize FlattenedRaw to JSON")
    }
/// Serialize using Flattened JWS JSON Serialization
///
/// See [RFC 7515 section 7.2.2](https://tools.ietf.org/html/rfc7515#section-7.2.2)
Serialize using Flattened JWS JSON Serialization
See [RFC 7515 section 7.2.2]
Serialize using Flattened JWS JSON Serialization See [ RFC 7515 section 7 . 2 . 2 ]
pub fn serialize_flattened(&self) -> String {
        let payload = self.data.payload.clone();
        let protected_header = self.data.protected_header_serialized.clone();
        let signature = self.signature.clone();
        let s = FlattenedRaw {
            payload,
            protected_header,
            signature,
            signatures: (),
            unprotected_header: (),
        };
        // This shouldn't fail, because FlattenedRaw strucs are
        // always representable in JSON
        serde_json::to_string(&s).expect("Failed to serialize FlattenedRaw to JSON")
    }
pub fn serialize_flattened ( & self ) -> String { let payload = self . data . payload . clone ( ) ; let protected_header = self . data . protected_header_serialized . clone ( ) ; let signature = self . signature . clone ( ) ; let s = FlattenedRaw { payload , protected_header , signature , signatures : ( ) , unprotected_header : ( ) , } ; // This shouldn't fail, because FlattenedRaw strucs are // always representable in JSON serde_json :: to_string ( & s ) . expect ( " " ) }
Serialize using Flattened JWS JSON Serialization
See [RFC 7515 section 7.2.2](https://tools.ietf.org/html/rfc7515#section-7.2.2)
Serialize using Flattened JWS JSON Serialization See [ RFC 7515 section 7 . 2 . 2 ] ( https : // tools . ietf . org / html / rfc7515#section - 7 . 2 . 2 )
&self
&self