pub struct AttributeDefinition {
pub name: String,
pub data_type: AttributeType,
pub multi_valued: bool,
pub required: bool,
pub case_exact: bool,
pub mutability: Mutability,
pub uniqueness: Uniqueness,
pub canonical_values: Vec<String>,
pub sub_attributes: Vec<AttributeDefinition>,
pub returned: Option<String>,
}
Expand description
Definition of a SCIM attribute.
Defines all characteristics of an attribute including type, constraints, and validation rules.
Fields§
§name: String
Attribute name
data_type: AttributeType
Data type of the attribute
multi_valued: bool
Whether this attribute can have multiple values
required: bool
Whether this attribute is required
case_exact: bool
Whether string comparison is case-sensitive
mutability: Mutability
Mutability characteristics
uniqueness: Uniqueness
Uniqueness constraints
canonical_values: Vec<String>
Allowed values for string attributes
sub_attributes: Vec<AttributeDefinition>
Sub-attributes for complex types
returned: Option<String>
How the attribute is returned in responses
Trait Implementations§
Source§impl Clone for AttributeDefinition
impl Clone for AttributeDefinition
Source§fn clone(&self) -> AttributeDefinition
fn clone(&self) -> AttributeDefinition
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 AttributeDefinition
impl Debug for AttributeDefinition
Source§impl Default for AttributeDefinition
impl Default for AttributeDefinition
Source§impl<'de> Deserialize<'de> for AttributeDefinition
impl<'de> Deserialize<'de> for AttributeDefinition
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
Auto Trait Implementations§
impl Freeze for AttributeDefinition
impl RefUnwindSafe for AttributeDefinition
impl Send for AttributeDefinition
impl Sync for AttributeDefinition
impl Unpin for AttributeDefinition
impl UnwindSafe for AttributeDefinition
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.