pub fn serialize_general_json(
        &self,
        payload: &[u8],
        signers: &[(&JwsHeaderSet, &dyn JwsSigner)],
    ) -> Result<String, JoseError> {
        self.serialize_general_json_with_selecter(
            payload,
            signers
                .iter()
                .map(|signer| signer.0)
                .collect::<Vec<&JwsHeaderSet>>()
                .as_slice(),
            |i, _header| Some(signers[i].1),
        )
    }
/// Return a representation of the data that is formatted by flattened json serialization.
///
/// # Arguments
///
/// * `protected` - The JWS protected header claims.
/// * `header` - The JWS unprotected header claims.
/// * `payload` - The payload data.
/// * `signers` - The JWS signer.
Return a representation of the data that is formatted by flattened json serialization.
Return a representation of the data that is formatted by flattened json serialization .
pub fn serialize_general_json(
        &self,
        payload: &[u8],
        signers: &[(&JwsHeaderSet, &dyn JwsSigner)],
    ) -> Result<String, JoseError> {
        self.serialize_general_json_with_selecter(
            payload,
            signers
                .iter()
                .map(|signer| signer.0)
                .collect::<Vec<&JwsHeaderSet>>()
                .as_slice(),
            |i, _header| Some(signers[i].1),
        )
    }
pub fn serialize_general_json ( & self , payload : & [ u8 ] , signers : & [ ( & JwsHeaderSet , & dyn JwsSigner ) ] , ) -> Result < String , JoseError > { self . serialize_general_json_with_selecter ( payload , signers . iter ( ) . map ( | signer | signer . 0 ) . collect :: < Vec < & JwsHeaderSet > > ( ) . as_slice ( ) , | i , _header | Some ( signers [ i ] . 1 ) , ) }
Return a representation of the data that is formatted by flattened json serialization.
Return a representation of the data that is formatted by flattened json serialization .
&self
payload
&[u8]
signers
&[(&JwsHeaderSet, &dyn JwsSigner)]
&self
payload
&[u8]
signers
&[(&JwsHeaderSet, &dyn JwsSigner)]