Skip to content

stdlib/privacyView source ↗

privacy

7 items · generated by scribe fromstdlib/privacy.fd· synced 2026-11-15

stdlib/privacy7 items

Contents

PrivCounter

impl PrivCounter {

Defined at line 13


Record that subject consents to purpose; returns the token.

pub fn consent_grant(subject: str, purpose: str) -> Consent {

Parameters:

  • subject: str
  • purpose: str

Returns: Consent

Defined at line 48


Withdraw subject’s consent for purpose.

pub fn consent_revoke(subject: str, purpose: str) {

Parameters:

  • subject: str
  • purpose: str

Defined at line 59


True while subject consents to purpose.

pub fn consent_given(subject: str, purpose: str) -> bool {

Parameters:

  • subject: str
  • purpose: str

Returns: bool

Defined at line 67


Generated by scribe, the Fides documentation generator