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 index: Vec<IndexType>,
pub syntax: SyntaxType,
}
Expand description
Fields
name: AttrString
uuid: Uuid
description: String
multivalue: bool
unique: bool
phantom: 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 more
sourceimpl Debug for SchemaAttribute
impl Debug for SchemaAttribute
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more