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