pub enum ConsentDecision {
Permitted,
NeedsConsent,
NeedsReceipts(Vec<EgressScope>),
}Expand description
The host’s pre-query consent verdict for one provider — the gate result the
host acts on before transmitting a query (docs/context-reuse.md §3).
Variants§
Permitted
The query may be transmitted: the provider is local, or every off-machine egress scope it declares has a recorded receipt, or its legacy boolean egress consent is on file.
NeedsConsent
The provider declares egress with no egress scopes (the pre-scope
boolean contract) and no consent is recorded. Transmitting is refused.
NeedsReceipts(Vec<EgressScope>)
The provider declares off-machine egress scope(s) with no recorded consent receipt. Carries exactly the scopes still lacking a receipt, so the host’s typed error names what would leave unconsented.
Trait Implementations§
Source§impl Clone for ConsentDecision
impl Clone for ConsentDecision
Source§fn clone(&self) -> ConsentDecision
fn clone(&self) -> ConsentDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsentDecision
impl Debug for ConsentDecision
impl Eq for ConsentDecision
Source§impl PartialEq for ConsentDecision
impl PartialEq for ConsentDecision
impl StructuralPartialEq for ConsentDecision
Auto Trait Implementations§
impl Freeze for ConsentDecision
impl RefUnwindSafe for ConsentDecision
impl Send for ConsentDecision
impl Sync for ConsentDecision
impl Unpin for ConsentDecision
impl UnsafeUnpin for ConsentDecision
impl UnwindSafe for ConsentDecision
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