pub struct BuildConsentEvidence {
pub robot_did: String,
pub capture_hash: String,
pub basis: String,
pub consent_tokens: Vec<Value>,
pub redaction_hash: Option<String>,
pub valid_from: String,
pub valid_until: Option<String>,
}Expand description
Parameters for build_consent_evidence. The signer is the robot; the
evidence records that a capture (named by capture_hash) was permitted on
basis, one of CONSENT_BASES. consent_tokens, when the basis is explicit
consent, are the bystander tokens that cover it, committed by their proof value.
redaction_hash, when set, records that a redacted output was produced.
valid_until, when set, bounds the window.
Fields§
§robot_did: String§capture_hash: String§basis: String§consent_tokens: Vec<Value>§redaction_hash: Option<String>§valid_from: String§valid_until: Option<String>Trait Implementations§
Source§impl Clone for BuildConsentEvidence
impl Clone for BuildConsentEvidence
Auto Trait Implementations§
impl Forget for BuildConsentEvidence
impl Freeze for BuildConsentEvidence
impl RefUnwindSafe for BuildConsentEvidence
impl Send for BuildConsentEvidence
impl Sync for BuildConsentEvidence
impl Unpin for BuildConsentEvidence
impl UnsafeUnpin for BuildConsentEvidence
impl UnwindSafe for BuildConsentEvidence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more