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