pub enum Grantor {
Human(String),
Policy(String),
}Expand description
Who granted a consent receipt (docs/context-reuse.md §3). Recorded so the
audit trail names an accountable party, not just a moment.
Serializes as a tagged object — {"kind": "human", "id": "…"} — so a
grantor is self-describing in a persisted ledger rather than a bare string
whose meaning depends on out-of-band convention.
Variants§
Human(String)
A human user, identified however the host names them at consent time (a user id, email, or display name).
Policy(String)
An automated policy, identified by its policy id or name — consent granted by a rule rather than a person present in the moment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grantor
impl<'de> Deserialize<'de> for Grantor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Grantor
impl StructuralPartialEq for Grantor
Auto Trait Implementations§
impl Freeze for Grantor
impl RefUnwindSafe for Grantor
impl Send for Grantor
impl Sync for Grantor
impl Unpin for Grantor
impl UnsafeUnpin for Grantor
impl UnwindSafe for Grantor
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