1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Framework-agnostic SCIM operation handler.
//!
//! This module provides structured request/response handling for SCIM operations
//! with built-in ETag concurrency control and comprehensive error handling.
//!
//! # Key Types
//!
//! - [`ScimOperationHandler`] - Main handler for processing SCIM operations
//! - [`ScimOperationRequest`] - Structured request wrapper with validation
//! - [`ScimOperationResponse`] - Response with metadata and ETag information
//!
//! # Examples
//!
//! ```rust,no_run
//! use scim_server::operation_handler::{ScimOperationHandler, ScimOperationRequest};
//! use scim_server::{ScimServer, providers::StandardResourceProvider};
//! use scim_server::storage::InMemoryStorage;
//! use serde_json::json;
//!
//! # async fn example() -> Result<(), Box<dyn std::error::Error>> {
//! let storage = InMemoryStorage::new();
//! let provider = StandardResourceProvider::new(storage);
//! let server = ScimServer::new(provider)?;
//! let handler = ScimOperationHandler::new(server);
//!
//! let request = ScimOperationRequest::update("User", "123", json!({"active": true}));
//! let response = handler.handle_operation(request).await;
//! # Ok(())
//! # }
//! ```
// Re-export all public types and functions
pub use ;
// Re-export builder utilities
pub use *;
// Re-export error utilities for advanced usage
pub use ;