Struct ldap_types::schema::AttributeType
source · [−]pub struct AttributeType {Show 14 fields
pub oid: ObjectIdentifier,
pub name: Vec<KeyString>,
pub sup: Option<KeyString>,
pub desc: Option<String>,
pub syntax: Option<OIDWithLength>,
pub single_value: bool,
pub equality: Option<KeyString>,
pub substr: Option<KeyString>,
pub ordering: Option<KeyString>,
pub no_user_modification: bool,
pub usage: Option<KeyString>,
pub collective: bool,
pub obsolete: bool,
pub x_ordered: Option<KeyString>,
}
Expand description
an attribute type LDAP schema entry
Fields
oid: ObjectIdentifier
the OID of the attribute type
name: Vec<KeyString>
the name of the attribute type
sup: Option<KeyString>
the parent in the inheritance tree
desc: Option<String>
a human-readable description
syntax: Option<OIDWithLength>
the LDAP syntax of the attribute type
single_value: bool
is this a single or multi-valued attribute
equality: Option<KeyString>
the equality match to use with this attribute type
substr: Option<KeyString>
the substring match to use with this attribute type
ordering: Option<KeyString>
the ordering to use with this attribute type
no_user_modification: bool
is user modification of this attribute type allowed (e.g. often operational attributes are not user modifiable)
usage: Option<KeyString>
if this attribute is a
- user attribute (userApplications)
- an operational attribute (directoryOperation)
- an operational attribute that needs to be replicated (distributedOperation)
- an operational attribute that should not be replicated (dSAOperation)
collective: bool
is this a collective attribute
obsolete: bool
is this attribute obsolete
x_ordered: Option<KeyString>
is this attribute ordered and if so how
- values (order among multiple attribute values is preserved)
- siblings (order among entries using this attribute as RDN is preserved)
Trait Implementations
sourceimpl Clone for AttributeType
impl Clone for AttributeType
sourcefn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AttributeType
impl Debug for AttributeType
sourceimpl<'de> Deserialize<'de> for AttributeType
impl<'de> Deserialize<'de> for AttributeType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for AttributeType
impl Hash for AttributeType
sourceimpl PartialEq<AttributeType> for AttributeType
impl PartialEq<AttributeType> for AttributeType
sourceimpl Serialize for AttributeType
impl Serialize for AttributeType
impl Eq for AttributeType
Auto Trait Implementations
impl RefUnwindSafe for AttributeType
impl Send for AttributeType
impl Sync for AttributeType
impl Unpin for AttributeType
impl UnwindSafe for AttributeType
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