pub fn serialize_flattened_json(
        &self,
        payload: &[u8],
        header: Option<&JweHeaderSet>,
        recipient_header: Option<&JweHeader>,
        aad: Option<&[u8]>,
        encrypter: &dyn JweEncrypter,
    ) -> Result<String, JoseError> {
        self.serialize_flattened_json_with_selector(
            payload,
            header,
            recipient_header,
            aad,
            |_header| Some(encrypter),
        )
    }
/// 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.
/// * `recipient_header` - The JWE unprotected header claims per recipient.
/// * `aad` - The JWE additional authenticated 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(
        &self,
        payload: &[u8],
        header: Option<&JweHeaderSet>,
        recipient_header: Option<&JweHeader>,
        aad: Option<&[u8]>,
        encrypter: &dyn JweEncrypter,
    ) -> Result<String, JoseError> {
        self.serialize_flattened_json_with_selector(
            payload,
            header,
            recipient_header,
            aad,
            |_header| Some(encrypter),
        )
    }
pub fn serialize_flattened_json ( & self , payload : & [ u8 ] , header : Option < & JweHeaderSet > , recipient_header : Option < & JweHeader > , aad : Option < & [ u8 ] > , encrypter : & dyn JweEncrypter , ) -> Result < String , JoseError > { self . serialize_flattened_json_with_selector ( payload , header , recipient_header , aad , | _header | Some ( 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 .
&self
payload
&[u8]
header
Option<&JweHeaderSet>
recipient_header
Option<&JweHeader>
aad
Option<&[u8]>
encrypter
&dyn JweEncrypter
&self
payload
&[u8]
header
Option<&JweHeaderSet>
recipient_header
Option<&JweHeader>
aad
Option<&[u8]>
encrypter
&dyn JweEncrypter