pub enum InMemoryError {
ResourceNotFound {
resource_type: String,
id: String,
tenant_id: String,
},
DuplicateAttribute {
resource_type: String,
attribute: String,
value: String,
tenant_id: String,
},
InvalidData {
message: String,
},
QueryError {
message: String,
},
Internal {
message: String,
},
InvalidInput {
message: String,
},
NotFound {
resource_type: String,
id: String,
},
PreconditionFailed {
message: String,
},
DuplicateUserName {
resource_type: String,
username: String,
tenant_id: String,
},
PatchOperationFailed {
message: String,
},
VersionConflict {
conflict: VersionConflict,
},
}Expand description
Errors that can occur during in-memory provider operations.
This error type is used by in-memory resource providers to represent various failure conditions during SCIM operations.
Variants§
ResourceNotFound
Fields
DuplicateAttribute
Fields
InvalidData
QueryError
Internal
InvalidInput
NotFound
Fields
PreconditionFailed
DuplicateUserName
Fields
PatchOperationFailed
VersionConflict
Fields
§
conflict: VersionConflictDetails of the version conflict
Trait Implementations§
Source§impl Clone for InMemoryError
impl Clone for InMemoryError
Source§fn clone(&self) -> InMemoryError
fn clone(&self) -> InMemoryError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryError
impl Debug for InMemoryError
Source§impl Display for InMemoryError
impl Display for InMemoryError
Source§impl Error for InMemoryError
impl Error for InMemoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<VersionConflict> for InMemoryError
impl From<VersionConflict> for InMemoryError
Source§fn from(source: VersionConflict) -> Self
fn from(source: VersionConflict) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InMemoryError
impl RefUnwindSafe for InMemoryError
impl Send for InMemoryError
impl Sync for InMemoryError
impl Unpin for InMemoryError
impl UnwindSafe for InMemoryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> TenantValidator for T
impl<T> TenantValidator for T
Source§fn validate_tenant_context(
&self,
expected_tenant_id: &str,
context: &RequestContext,
) -> Result<(), String>
fn validate_tenant_context( &self, expected_tenant_id: &str, context: &RequestContext, ) -> Result<(), String>
Validate that the context has the expected tenant.
Source§fn validate_single_tenant_context(
&self,
context: &RequestContext,
) -> Result<(), String>
fn validate_single_tenant_context( &self, context: &RequestContext, ) -> Result<(), String>
Validate that the context is for single-tenant operation.
Source§fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
fn require_tenant_context(&self, context: &RequestContext) -> Result<(), String>
Extract tenant context or return error for multi-tenant operations.