pub fn serialize_flattened_json_with_selector<'a, F>(
    payload: &[u8],
    header: Option<&JweHeaderSet>,
    recipient_header: Option<&JweHeader>,
    aad: Option<&[u8]>,
    selector: F,
) -> Result<String, JoseError>
where
    F: Fn(&JweHeader) -> Option<&'a dyn JweEncrypter>,
{
    DEFAULT_CONTEXT.serialize_flattened_json_with_selector(
        payload,
        header,
        recipient_header,
        aad,
        selector,
    )
}
/// Return a representation of the data that is formatted by flatted json serialization.
///
/// # Arguments
///
/// * `payload` - The payload data.
/// * `header` - The JWS shared protected and unprotected header claims.
/// * `recipient_header` - The JWS unprotected header claims.
/// * `aad` - The JWE additional authenticated data.
/// * `selector` - a function for selecting the encrypting algorithm.
Return a representation of the data that is formatted by flatted json serialization.
Return a representation of the data that is formatted by flatted json serialization .
pub fn serialize_flattened_json_with_selector<'a, F>(
    payload: &[u8],
    header: Option<&JweHeaderSet>,
    recipient_header: Option<&JweHeader>,
    aad: Option<&[u8]>,
    selector: F,
) -> Result<String, JoseError>
where
    F: Fn(&JweHeader) -> Option<&'a dyn JweEncrypter>,
{
    DEFAULT_CONTEXT.serialize_flattened_json_with_selector(
        payload,
        header,
        recipient_header,
        aad,
        selector,
    )
}
pub fn serialize_flattened_json_with_selector < ' a , F > ( payload : & [ u8 ] , header : Option < & JweHeaderSet > , recipient_header : Option < & JweHeader > , aad : Option < & [ u8 ] > , selector : F , ) -> Result < String , JoseError > where F : Fn ( & JweHeader ) -> Option < & ' a dyn JweEncrypter > , { DEFAULT_CONTEXT . serialize_flattened_json_with_selector ( payload , header , recipient_header , aad , selector , ) }
Return a representation of the data that is formatted by flatted json serialization.
Return a representation of the data that is formatted by flatted json serialization .
payload
&[u8]
header
Option<&JweHeaderSet>
recipient_header
Option<&JweHeader>
aad
Option<&[u8]>
selector
F
payload
&[u8]
header
Option<&JweHeaderSet>
recipient_header
Option<&JweHeader>
aad
Option<&[u8]>
selector
F