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
sourceimpl ObjectClassType
impl ObjectClassType
sourcepub fn is_abstract(&self) -> bool
pub fn is_abstract(&self) -> bool
Returns true
if self
is of variant Abstract
.
sourcepub fn is_structural(&self) -> bool
pub fn is_structural(&self) -> bool
Returns true
if self
is of variant Structural
.
sourcepub fn is_auxiliary(&self) -> bool
pub fn is_auxiliary(&self) -> bool
Returns true
if self
is of variant Auxiliary
.
sourceimpl ObjectClassType
impl ObjectClassType
sourcepub fn as_abstract_mut(&mut self) -> Option<()>
pub fn as_abstract_mut(&mut self) -> Option<()>
Optionally returns references to the inner fields if this is a ObjectClassType::Abstract
, otherwise None
sourcepub fn as_abstract(&self) -> Option<()>
pub fn as_abstract(&self) -> Option<()>
Optionally returns references to the inner fields if this is a ObjectClassType::Abstract
, otherwise None
sourcepub fn as_structural_mut(&mut self) -> Option<()>
pub fn as_structural_mut(&mut self) -> Option<()>
Optionally returns references to the inner fields if this is a ObjectClassType::Structural
, otherwise None
sourcepub fn as_structural(&self) -> Option<()>
pub fn as_structural(&self) -> Option<()>
Optionally returns references to the inner fields if this is a ObjectClassType::Structural
, otherwise None
sourcepub fn as_auxiliary_mut(&mut self) -> Option<()>
pub fn as_auxiliary_mut(&mut self) -> Option<()>
Optionally returns references to the inner fields if this is a ObjectClassType::Auxiliary
, otherwise None
sourcepub fn as_auxiliary(&self) -> Option<()>
pub fn as_auxiliary(&self) -> Option<()>
Optionally returns references to the inner fields if this is a ObjectClassType::Auxiliary
, otherwise None
Trait Implementations
sourceimpl Clone for ObjectClassType
impl Clone for ObjectClassType
sourcefn clone(&self) -> ObjectClassType
fn clone(&self) -> ObjectClassType
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more