pub fn set_consent(a: &mut Agreement, did: &str, state: ConsentState)Expand description
Set party did’s consent to state, in place.
If a PartyConsent for did already exists its consent is replaced (its signature_hex is kept);
otherwise a new PartyConsent { did, consent: state, signature_hex: None } is appended.