Enum ldap_types::schema::ObjectClassType
source · pub enum ObjectClassType {
Abstract,
Structural,
Auxiliary,
}
Expand description
type of LDAP object class
Variants§
Abstract
this can not be used as an actual object class and is purely used as a parent for the other types
Structural
this is the main objectclass of an object, other than structural classes that are ancestors in the inheritance hierarchy only one of these can be used on any given LDAP object
Auxiliary
these are objectclasses that are added on to the main structural object class of an entry
Implementations§
source§impl ObjectClassType
impl ObjectClassType
sourcepub fn is_abstract(&self) -> bool
pub fn is_abstract(&self) -> bool
Returns true if this is a ObjectClassType::Abstract
, otherwise false
sourcepub fn is_structural(&self) -> bool
pub fn is_structural(&self) -> bool
Returns true if this is a ObjectClassType::Structural
, otherwise false
sourcepub fn is_auxiliary(&self) -> bool
pub fn is_auxiliary(&self) -> bool
Returns true if this is a ObjectClassType::Auxiliary
, otherwise false
Trait Implementations§
source§impl Clone for ObjectClassType
impl Clone for ObjectClassType
source§fn clone(&self) -> ObjectClassType
fn clone(&self) -> ObjectClassType
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 ObjectClassType
impl Debug for ObjectClassType
source§impl<'de> Deserialize<'de> for ObjectClassType
impl<'de> Deserialize<'de> for ObjectClassType
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 ObjectClassType
impl Hash for ObjectClassType
source§impl PartialEq for ObjectClassType
impl PartialEq for ObjectClassType
source§fn eq(&self, other: &ObjectClassType) -> bool
fn eq(&self, other: &ObjectClassType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ObjectClassType
impl Serialize for ObjectClassType
impl Eq for ObjectClassType
impl StructuralEq for ObjectClassType
impl StructuralPartialEq for ObjectClassType
Auto Trait Implementations§
impl RefUnwindSafe for ObjectClassType
impl Send for ObjectClassType
impl Sync for ObjectClassType
impl Unpin for ObjectClassType
impl UnwindSafe for ObjectClassType
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