pub struct erase_user_data;Expand description
DELETE /api/v1/gdpr/erase Erase user personal data by anonymization (GDPR Article 17 - Right to Erasure)
This endpoint anonymizes the user’s account and all linked owner profiles. Data is not deleted entirely to preserve referential integrity and comply with legal retention requirements (e.g., financial records must be kept for 7 years).
§Returns
200 OK- JSON confirmation of successful anonymization401 Unauthorized- Missing or invalid authentication403 Forbidden- User attempting to erase another user’s data409 Conflict- Legal holds prevent erasure (e.g., unpaid expenses)410 Gone- User already anonymized500 Internal Server Error- Database or processing error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for erase_user_data
impl RefUnwindSafe for erase_user_data
impl Send for erase_user_data
impl Sync for erase_user_data
impl Unpin for erase_user_data
impl UnwindSafe for erase_user_data
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.