Skip to main content

qualia_vision/biosense/consent/
purpose.rs

1//! Purpose binding for biosense processing (selfhood).
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq)]
4pub enum BiosensePurpose {
5    /// Principal self-monitoring (Wellfair).
6    WellfairSelfMonitor = 1,
7    /// Opt-in research journal.
8    Research = 2,
9    /// Security unlock (liveness + 1:1).
10    Security = 3,
11    /// Explicit multi-party / CCTV policy evaluation only.
12    SurveillancePolicy = 4,
13}
14
15impl BiosensePurpose {
16    /// `&str` form.
17    pub const fn as_str(self) -> &'static str {
18        match self {
19            Self::WellfairSelfMonitor => "wellfair_self_monitor",
20            Self::Research => "research",
21            Self::Security => "security",
22            Self::SurveillancePolicy => "surveillance_policy",
23        }
24    }
25}