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,
},
}Expand description
Error types for the in-memory provider.
Variants§
Trait Implementations§
Source§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
1.30.0 · 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()
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> 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.