Struct kanidmd_lib::schema::SchemaAttribute
source · pub struct SchemaAttribute {
pub name: AttrString,
pub uuid: Uuid,
pub description: String,
pub multivalue: bool,
pub unique: bool,
pub phantom: bool,
pub sync_allowed: bool,
pub replicated: bool,
pub index: Vec<IndexType>,
pub syntax: SyntaxType,
}
Expand description
Fields§
§name: AttrString
§uuid: Uuid
§description: String
§multivalue: bool
§unique: bool
§phantom: bool
§sync_allowed: bool
§replicated: bool
§index: Vec<IndexType>
§syntax: SyntaxType
Implementations§
source§impl SchemaAttribute
impl SchemaAttribute
pub fn try_from( value: &Entry<EntrySealed, EntryCommitted> ) -> Result<Self, OperationError>
pub fn validate_partialvalue( &self, a: &str, v: &PartialValue ) -> Result<(), SchemaError>
pub fn validate_value(&self, a: &str, v: &Value) -> Result<(), SchemaError>
pub fn validate_ava(&self, a: &str, ava: &ValueSet) -> Result<(), SchemaError>
Trait Implementations§
source§impl Clone for SchemaAttribute
impl Clone for SchemaAttribute
source§fn clone(&self) -> SchemaAttribute
fn clone(&self) -> SchemaAttribute
Returns a copy 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 SchemaAttribute
impl Debug for SchemaAttribute
source§impl Default for SchemaAttribute
impl Default for SchemaAttribute
source§fn default() -> SchemaAttribute
fn default() -> SchemaAttribute
Returns the “default value” for a type. Read more