Struct ldap_types::schema::LDAPSchema
source · [−]pub struct LDAPSchema {
pub ldap_syntaxes: Vec<LDAPSyntax>,
pub matching_rules: Vec<MatchingRule>,
pub matching_rule_use: Vec<MatchingRuleUse>,
pub attribute_types: Vec<AttributeType>,
pub object_classes: Vec<ObjectClass>,
}
Expand description
an entire LDAP schema for an LDAP server
Fields
ldap_syntaxes: Vec<LDAPSyntax>
the supported LDAP syntaxes
matching_rules: Vec<MatchingRule>
the supported LDAP matching rules
matching_rule_use: Vec<MatchingRuleUse>
the allowed uses (attributes) for the LDAP matching rules
attribute_types: Vec<AttributeType>
the supported LDAP attribute types
object_classes: Vec<ObjectClass>
the supported LDAP object classes
Implementations
sourceimpl LDAPSchema
impl LDAPSchema
sourcepub fn find_attribute_type<'a>(&'a self, id: &str) -> Option<&'a AttributeType>
pub fn find_attribute_type<'a>(&'a self, id: &str) -> Option<&'a AttributeType>
return the attribute type if it is present in the schema
sourcepub fn find_attribute_type_property<'a, R>(
&'a self,
id: &str,
f: fn(_: &'a AttributeType) -> Option<&'a R>
) -> Option<&'a R>
pub fn find_attribute_type_property<'a, R>(
&'a self,
id: &str,
f: fn(_: &'a AttributeType) -> Option<&'a R>
) -> Option<&'a R>
apply the given function to the named attribute type and all its ancestors in the LDAP schema until one returns Some
Trait Implementations
sourceimpl Clone for LDAPSchema
impl Clone for LDAPSchema
sourcefn clone(&self) -> LDAPSchema
fn clone(&self) -> LDAPSchema
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LDAPSchema
impl Debug for LDAPSchema
sourceimpl<'de> Deserialize<'de> for LDAPSchema
impl<'de> Deserialize<'de> for LDAPSchema
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 Serialize for LDAPSchema
impl Serialize for LDAPSchema
Auto Trait Implementations
impl RefUnwindSafe for LDAPSchema
impl Send for LDAPSchema
impl Sync for LDAPSchema
impl Unpin for LDAPSchema
impl UnwindSafe for LDAPSchema
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more