pub enum Uniqueness {
None,
Server,
Global,
}
Expand description
Attribute uniqueness constraints.
Defines the scope of uniqueness for attribute values.
Variants§
Trait Implementations§
Source§impl Clone for Uniqueness
impl Clone for Uniqueness
Source§fn clone(&self) -> Uniqueness
fn clone(&self) -> Uniqueness
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 Uniqueness
impl Debug for Uniqueness
Source§impl Default for Uniqueness
impl Default for Uniqueness
Source§impl<'de> Deserialize<'de> for Uniqueness
impl<'de> Deserialize<'de> for Uniqueness
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Uniqueness
impl PartialEq for Uniqueness
Source§impl Serialize for Uniqueness
impl Serialize for Uniqueness
impl Eq for Uniqueness
impl StructuralPartialEq for Uniqueness
Auto Trait Implementations§
impl Freeze for Uniqueness
impl RefUnwindSafe for Uniqueness
impl Send for Uniqueness
impl Sync for Uniqueness
impl Unpin for Uniqueness
impl UnwindSafe for Uniqueness
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.