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 index: Vec<IndexType>,
pub syntax: SyntaxType,
}
Expand description
Fields
name: AttrString
uuid: Uuid
description: String
multivalue: bool
unique: bool
phantom: bool
sync_allowed: bool
index: Vec<IndexType>
syntax: SyntaxType
Implementations
sourceimpl 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
sourceimpl Clone for SchemaAttribute
impl Clone for SchemaAttribute
sourcefn clone(&self) -> SchemaAttribute
fn clone(&self) -> SchemaAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SchemaAttribute
impl Debug for SchemaAttribute
sourceimpl Default for SchemaAttribute
impl Default for SchemaAttribute
sourcefn default() -> SchemaAttribute
fn default() -> SchemaAttribute
Returns the “default value” for a type. Read more
sourceimpl From<&SchemaAttribute> for Entry<EntryInit, EntryNew>
impl From<&SchemaAttribute> for Entry<EntryInit, EntryNew>
sourcefn from(s: &SchemaAttribute) -> Self
fn from(s: &SchemaAttribute) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SchemaAttribute
impl Send for SchemaAttribute
impl Sync for SchemaAttribute
impl Unpin for SchemaAttribute
impl UnwindSafe for SchemaAttribute
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more