pub struct SchemaAttribute {
pub name: Attribute,
pub uuid: Uuid,
pub description: String,
pub multivalue: bool,
pub unique: bool,
pub phantom: bool,
pub sync_allowed: bool,
pub replicated: Replicated,
pub indexed: bool,
pub syntax: SyntaxType,
}
Expand description
Fields§
§name: Attribute
§uuid: Uuid
§description: String
§multivalue: bool
Defines if the attribute may have one or multiple values associated to it.
unique: bool
If this flag is set, all instances of this attribute must be a unique value in the database.
phantom: bool
This defines that the value is a phantom - it is “not real”, can never “be real”. It is synthesised in memory, and will never be written to the database. This can exist for placeholders like cn/uid in ldap.
sync_allowed: bool
This boolean defines if this attribute may be altered by an external IDP sync agreement.
replicated: Replicated
If set the value of this attribute get replicated to other servers
indexed: bool
Define if this attribute is indexed or not according to its syntax type rule
syntax: SyntaxType
THe type of data that this attribute may hold.
Implementations§
Source§impl SchemaAttribute
impl SchemaAttribute
pub fn try_from( value: &Entry<EntrySealed, EntryCommitted>, ) -> Result<Self, OperationError>
pub fn validate_partialvalue( &self, a: &Attribute, v: &PartialValue, ) -> Result<(), SchemaError>
pub fn validate_value( &self, a: &Attribute, v: &Value, ) -> Result<(), SchemaError>
pub fn validate_ava( &self, a: &Attribute, 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
Source§impl From<&SchemaAttribute> for EntryInitNew
impl From<&SchemaAttribute> for EntryInitNew
Source§fn from(s: &SchemaAttribute) -> Self
fn from(s: &SchemaAttribute) -> Self
Converts to this type from the input type.
Source§impl From<SchemaAttribute> for EntryInitNew
impl From<SchemaAttribute> for EntryInitNew
Source§fn from(value: SchemaAttribute) -> Self
fn from(value: SchemaAttribute) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SchemaAttribute
impl RefUnwindSafe for SchemaAttribute
impl Send for SchemaAttribute
impl Sync for SchemaAttribute
impl Unpin for SchemaAttribute
impl UnwindSafe for SchemaAttribute
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request