pub fn encode_with_signer(
    payload: &JwtPayload,
    header: &JwsHeader,
    signer: &dyn JwsSigner,
) -> Result<String, JoseError> {
    DEFAULT_CONTEXT.encode_with_signer(payload, header, signer)
}
/// Return the string repsentation of the JWT with the siginig algorithm.
///
/// # Arguments
///
/// * `payload` - The payload data.
/// * `header` - The JWS heaser claims.
/// * `signer` - a signer object.
Return the string repsentation of the JWT with the siginig algorithm.
Return the string repsentation of the JWT with the siginig algorithm .
pub fn encode_with_signer(
    payload: &JwtPayload,
    header: &JwsHeader,
    signer: &dyn JwsSigner,
) -> Result<String, JoseError> {
    DEFAULT_CONTEXT.encode_with_signer(payload, header, signer)
}
pub fn encode_with_signer ( payload : & JwtPayload , header : & JwsHeader , signer : & dyn JwsSigner , ) -> Result < String , JoseError > { DEFAULT_CONTEXT . encode_with_signer ( payload , header , signer ) }
Return the string repsentation of the JWT with the siginig algorithm.
Return the string repsentation of the JWT with the siginig algorithm .
payload
&JwtPayload
header
&JwsHeader
signer
&dyn JwsSigner
payload
&JwtPayload
header
&JwsHeader
signer
&dyn JwsSigner