pub fn serialize_compact(
        &self,
        payload: &[u8],
        header: &JwsHeader,
        signer: &dyn JwsSigner,
    ) -> Result<String, JoseError> {
        self.serialize_compact_with_selector(payload, header, |_header| Some(signer))
    }
/// Return a representation of the data that is formatted by compact serialization.
///
/// # Arguments
///
/// * `payload` - The payload data.
/// * `header` - The JWS heaser claims.
/// * `signer` - The JWS signer.
Return a representation of the data that is formatted by compact serialization.
Return a representation of the data that is formatted by compact serialization .
pub fn serialize_compact(
        &self,
        payload: &[u8],
        header: &JwsHeader,
        signer: &dyn JwsSigner,
    ) -> Result<String, JoseError> {
        self.serialize_compact_with_selector(payload, header, |_header| Some(signer))
    }
pub fn serialize_compact ( & self , payload : & [ u8 ] , header : & JwsHeader , signer : & dyn JwsSigner , ) -> Result < String , JoseError > { self . serialize_compact_with_selector ( payload , header , | _header | Some ( signer ) ) }
Return a representation of the data that is formatted by compact serialization.
Return a representation of the data that is formatted by compact serialization .
&self
payload
&[u8]
header
&JwsHeader
signer
&dyn JwsSigner
&self
payload
&[u8]
header
&JwsHeader
signer
&dyn JwsSigner