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§
source§impl Clone for AttributeType
impl Clone for AttributeType
source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
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 AttributeType
impl Debug for AttributeType
source§impl<'de> Deserialize<'de> for AttributeType
impl<'de> Deserialize<'de> for AttributeType
source§fn 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
source§impl Hash for AttributeType
impl Hash for AttributeType
source§impl PartialEq for AttributeType
impl PartialEq for AttributeType
source§impl 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§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more