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