pub fn serialize_flattened_json_with_selector<'a, F>(
    payload: &[u8],
    header: &JwsHeaderSet,
    selector: F,
) -> Result<String, JoseError>
where
    F: Fn(&JwsHeader) -> Option<&'a dyn JwsSigner>,
{
    DEFAULT_CONTEXT.serialize_flattened_json_with_selector(payload, header, selector)
}
/// Return a representation of the data that is formatted by flatted json serialization.
///
/// # Arguments
///
/// * `payload` - The payload data.
/// * `header` - The JWS protected and unprotected header claims.
/// * `selector` - a function for selecting the signing 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: &JwsHeaderSet,
    selector: F,
) -> Result<String, JoseError>
where
    F: Fn(&JwsHeader) -> Option<&'a dyn JwsSigner>,
{
    DEFAULT_CONTEXT.serialize_flattened_json_with_selector(payload, header, selector)
}
pub fn serialize_flattened_json_with_selector < ' a , F > ( payload : & [ u8 ] , header : & JwsHeaderSet , selector : F , ) -> Result < String , JoseError > where F : Fn ( & JwsHeader ) -> Option < & ' a dyn JwsSigner > , { DEFAULT_CONTEXT . serialize_flattened_json_with_selector ( payload , header , 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
&JwsHeaderSet
selector
F
payload
&[u8]
header
&JwsHeaderSet
selector
F