pub struct UserGdprState {
pub schema_version: u16,
pub status: GdprStatus,
}Expand description
GDPR lifecycle pointer — its own single-field Component (exactly one per User) and the sole source of truth for erasure eligibility.
Split out of UserProfile so a lifecycle transition is a blind, TOTAL
set_component write: the viewless dispatch-path compute (see
crate::bridge) cannot read existing kernel state, so it cannot
read-modify-write a bundled struct without clobbering its other fields.
A standalone single-field component makes the transition a correct total
write with no read. The admission gate
(ActionContext::ensure_actor_eligible)
reads THIS component; absence is treated as Active (a freshly registered
user always carries one — RegisterUser seeds Active).
Fields§
§schema_version: u16Wire-level schema version tag (A15 succession).
status: GdprStatusGDPR lifecycle pointer.
Trait Implementations§
Source§impl ArkheComponent for UserGdprState
impl ArkheComponent for UserGdprState
Source§impl Clone for UserGdprState
impl Clone for UserGdprState
Source§fn clone(&self) -> UserGdprState
fn clone(&self) -> UserGdprState
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 UserGdprState
impl Debug for UserGdprState
Source§impl<'de> Deserialize<'de> for UserGdprState
impl<'de> Deserialize<'de> for UserGdprState
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
Source§impl PartialEq for UserGdprState
impl PartialEq for UserGdprState
Source§fn eq(&self, other: &UserGdprState) -> bool
fn eq(&self, other: &UserGdprState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserGdprState
impl Serialize for UserGdprState
impl Copy for UserGdprState
impl Eq for UserGdprState
impl StructuralPartialEq for UserGdprState
Auto Trait Implementations§
impl Freeze for UserGdprState
impl RefUnwindSafe for UserGdprState
impl Send for UserGdprState
impl Sync for UserGdprState
impl Unpin for UserGdprState
impl UnsafeUnpin for UserGdprState
impl UnwindSafe for UserGdprState
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