pub struct record_consent;Expand description
POST /api/v1/consent Record user consent to privacy policy or terms of service
Requires JWT authentication. Records the consent in the database with audit trail (IP address, user agent, timestamp) for GDPR Art. 7 / Art. 13-14 compliance.
§Parameters
consent_type- Type of consent: “privacy_policy” or “terms”policy_version- Optional version of the policy (e.g., “1.0”)
§Returns
200 OK- Consent recorded successfully400 Bad Request- Invalid consent_type or request body401 Unauthorized- Missing or invalid authentication500 Internal Server Error- Database error
Trait Implementations§
Source§impl HttpServiceFactory for record_consent
impl HttpServiceFactory for record_consent
Source§impl Path for record_consent
impl Path for record_consent
Source§impl SchemaReferences for record_consent
impl SchemaReferences for record_consent
Source§impl<'t> Tags<'t> for record_consent
impl<'t> Tags<'t> for record_consent
Auto Trait Implementations§
impl Freeze for record_consent
impl RefUnwindSafe for record_consent
impl Send for record_consent
impl Sync for record_consent
impl Unpin for record_consent
impl UnwindSafe for record_consent
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.