_No description in Cargo.toml._
| Tier | operations |
| Role | unclassified (baselined) |
| Path | crates/operations/compliance |
| Edition | 2021 |
| Targets | operations_compliance |
| Public items | 0 across 0 modules |
| Tests | 10 |
What it is for
Library crates for compliance operations.
Provides GDPR-style data deletion workflows with retention policies.
# Features
- Deletion Request Workflow: Pending → Approved/Denied → Completed/Cancelled
- Retention Policies: Configure data retention and soft-delete purging
- Audit-Ready: All state changes can be logged
# Example
use operations_compliance::{DeletionRequest, DeletionStatus, RetentionPolicy};
use uuid::Uuid;
// Create a deletion request
let mut request = DeletionRequest::new(
Uuid::new_v4(),
"user",
Uuid::new_v4(),
"User requested account deletion",
Uuid::new_v4(), // requester ID
);
assert_eq!(request.status, DeletionStatus::Pending);
// Approve the request
let reviewer_id = Uuid::new_v4();
request.approve(reviewer_id, Some("Approved per GDPR Article 17")).unwrap();
// Configure retention policy
let policy = RetentionPolicy::new("User Data", "user")
.with_retention_days(365) // Keep for 1 year
.with_purge(90); // Purge soft-deleted after 90 days
Capabilities
No public items.
How to use it
From this crate's own rustdoc:
use operations_compliance::{DeletionRequest, DeletionStatus, RetentionPolicy};
use uuid::Uuid;
// Create a deletion request
let mut request = DeletionRequest::new(
Uuid::new_v4(),
"user",
Uuid::new_v4(),
"User requested account deletion",
Uuid::new_v4(), // requester ID
);
assert_eq!(request.status, DeletionStatus::Pending);
// Approve the request
let reviewer_id = Uuid::new_v4();
request.approve(reviewer_id, Some("Approved per GDPR Article 17")).unwrap();
// Configure retention policy
let policy = RetentionPolicy::new("User Data", "user")
.with_retention_days(365) // Keep for 1 year
.with_purge(90); // Purge soft-deleted after 90 days
Module structure
No public modules: the crate root is its whole surface.
Public surface
No public items.
Re-exports. Exported here, defined elsewhere.
| Export | Defined in |
|---|---|
{ComplianceError,Result} | error::{ComplianceError,Result} |
{CreateDeletionInput,DeletionListQuery,DeletionRequest,DeletionStatus,RetentionPolicy,RetentionSummary,ReviewDeletionInput,} | models::{CreateDeletionInput,DeletionListQuery,DeletionRequest,DeletionStatus,RetentionPolicy,RetentionSummary,ReviewDeletionInput,} |
Boundary
Depends on no other workspace tier.
Shares tier operations with 40 other crates: operations-approval-workflow, operations-assessments, operations-block-imaging, operations-boot-media, operations-browser-agent-worker, operations-camera-discovery, operations-camera-liveview, operations-camera-registry, … (40 total).
_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._
Where it sits
| Tier (ontology) | operations |
| Architectural role (taxonomy) | unclassified (baselined) |
| Location | crates/operations/compliance |
| Vocabulary in force (lexicon) | current |
Dependencies
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
chrono | ^0.4 | serde | no | always |
serde | ^1 | derive | no | always |
thiserror | ^2 | — | no | always |
uuid | ^1 | v4, v7, serde, js | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
serde_json | ^1 | — | no | always |
Build. None.
Depended on by. 1 workspace crate.
Signal flow — what reaches this crate, and what it reaches.
flowchart LR n_application_compliance["application-compliance"] -->|uses| SELF SELF["operations-compliance"] classDef self fill:#1f883d,stroke:#1f883d,color:#fff; class SELF self;
Feature flags
No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.
Targets
| Kind | Name | Source |
|---|---|---|
| lib | operations_compliance | `src/lib.rs` |
Error model
No public error type was detected: no public item declares a type named *Error, and no public signature returns one.
Operational characteristics
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | none detected |
| database access | none detected |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | none detected |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.
Related capabilities
1 workspace crate depends on this one: application-compliance.
Verification
| Kind | Count |
|---|---|
| Unit tests | 10 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 1 |
What the tests establish, by name:
test_deletion_list_query—src/models.rstest_deletion_request_deny_requires_notes—src/models.rstest_deletion_request_workflow—src/models.rstest_deletion_status_display—src/models.rstest_deletion_status_parse—src/models.rstest_deletion_status_state_checks—src/models.rstest_retention_policy_default—src/models.rstest_retention_policy_expiry—src/models.rstest_retention_policy_matches—src/models.rstest_retention_policy_purge—src/models.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 3 |
| Source lines | 563 |
| Code lines | 394 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 10 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 4 |
| Workspace reverse dependencies | 1 |
pie showData
title Rust source composition
"Code" : 394
"Blank or comment" : 169
Generation
Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.