pub fn serialize_flattened_json(
    payload: &[u8],
    header: Option<&JweHeaderSet>,
    recipient_header: Option<&JweHeader>,
    aad: Option<&[u8]>,
    encrypter: &dyn JweEncrypter,
) -> Result<String, JoseError> {
    DEFAULT_CONTEXT.serialize_flattened_json(payload, header, recipient_header, aad, encrypter)
}
/// Return a representation of the data that is formatted by flattened json serialization.
///
/// # Arguments
///
/// * `header` - The JWE shared protected and unprotected header claims.
/// * `recipient_header` - The JWE unprotected header claims.
/// * `aad` - The JWE additional authenticated data.
/// * `payload` - The payload data.
/// * `encrypter` - The JWS encrypter.
Return a representation of the data that is formatted by flattened json serialization.
Return a representation of the data that is formatted by flattened json serialization .
pub fn serialize_flattened_json(
    payload: &[u8],
    header: Option<&JweHeaderSet>,
    recipient_header: Option<&JweHeader>,
    aad: Option<&[u8]>,
    encrypter: &dyn JweEncrypter,
) -> Result<String, JoseError> {
    DEFAULT_CONTEXT.serialize_flattened_json(payload, header, recipient_header, aad, encrypter)
}
pub fn serialize_flattened_json ( payload : & [ u8 ] , header : Option < & JweHeaderSet > , recipient_header : Option < & JweHeader > , aad : Option < & [ u8 ] > , encrypter : & dyn JweEncrypter , ) -> Result < String , JoseError > { DEFAULT_CONTEXT . serialize_flattened_json ( payload , header , recipient_header , aad , encrypter ) }
Return a representation of the data that is formatted by flattened json serialization.
Return a representation of the data that is formatted by flattened json serialization .
payload
&[u8]
header
Option<&JweHeaderSet>
recipient_header
Option<&JweHeader>
aad
Option<&[u8]>
encrypter
&dyn JweEncrypter
payload
&[u8]
header
Option<&JweHeaderSet>
recipient_header
Option<&JweHeader>
aad
Option<&[u8]>
encrypter
&dyn JweEncrypter