pub struct BuildConsentToken {
pub bystander_did: String,
pub capture_hash: String,
pub robot_did: String,
pub scope: Option<String>,
pub granted_at: String,
pub valid_until: Option<String>,
}Expand description
Parameters for build_consent_token. The signer is the bystander; the token
binds their consent to one capture (named by capture_hash) by one robot
(robot_did). valid_until, when set, bounds the window (the wrapper derives
it from a valid_seconds lifetime added to granted_at, keeping the core’s
clock caller-supplied). scope, when set, records what the consent covers.
Fields§
§bystander_did: String§capture_hash: String§robot_did: String§scope: Option<String>§granted_at: String§valid_until: Option<String>Trait Implementations§
Source§impl Clone for BuildConsentToken
impl Clone for BuildConsentToken
Auto Trait Implementations§
impl Forget for BuildConsentToken
impl Freeze for BuildConsentToken
impl Move for BuildConsentToken
impl RefUnwindSafe for BuildConsentToken
impl Send for BuildConsentTokenwhere
RawVecInner: Send,
impl Sync for BuildConsentTokenwhere
RawVecInner: Sync,
impl Unpin for BuildConsentToken
impl UnsafeUnpin for BuildConsentToken
impl UnwindSafe for BuildConsentTokenwhere
RawVecInner: UnwindSafe,
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