pub trait SchemaMapper: Send + Sync {
// Required methods
fn to_implementation(&self, scim_data: &Value) -> Result<Value, ScimError>;
fn from_implementation(&self, impl_data: &Value) -> Result<Value, ScimError>;
}Expand description
Trait for mapping between SCIM schema and implementation schema (e.g., database)
Required Methods§
fn to_implementation(&self, scim_data: &Value) -> Result<Value, ScimError>
fn from_implementation(&self, impl_data: &Value) -> Result<Value, ScimError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".