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: bool,
pub index: Vec<IndexType>,
pub syntax: SyntaxType,
}
Expand description
Fields§
§name: Attribute
§uuid: Uuid
§description: String
§multivalue: bool
This is a vec, not a single value
unique: bool
If the attribute must be unique amongst all other values of this attribute? Maybe?
phantom: bool
TODO: What does this do?
sync_allowed: bool
TODO: What does this do?
replicated: bool
If the value of this attribute get replicated to other servers
index: Vec<IndexType>
TODO: What does this do?
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 Entry<EntryInit, EntryNew>
impl From<&SchemaAttribute> for Entry<EntryInit, EntryNew>
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> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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