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 allowed_attributes(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<HashSet<&AttributeType>>
pub fn allowed_attributes(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<HashSet<&AttributeType>>
returns the set of allowed attributes (either must or may) for an ObjectClass and all of its super-classes
sourcepub fn required_attributes(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<HashSet<&AttributeType>>
pub fn required_attributes(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<HashSet<&AttributeType>>
returns the set of required attributes (must) for an ObjectClass and all of its super-classes
sourcepub fn find_object_class(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<&ObjectClass>
pub fn find_object_class(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<&ObjectClass>
return the object class if it is present in the schema
sourcepub fn find_object_class_property<'a, R>(
&'a self,
id: impl TryInto<KeyStringOrOID>,
f: fn(_: &'a ObjectClass) -> Option<&'a R>
) -> Option<&'a R>
pub fn find_object_class_property<'a, R>(
&'a self,
id: impl TryInto<KeyStringOrOID>,
f: fn(_: &'a ObjectClass) -> Option<&'a R>
) -> Option<&'a R>
apply the given function to the named object class and all its ancestors in the LDAP schema until one returns Some
sourcepub fn find_attribute_type(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<&AttributeType>
pub fn find_attribute_type(
&self,
id: impl TryInto<KeyStringOrOID>
) -> Option<&AttributeType>
return the attribute type if it is present in the schema
sourcepub fn find_attribute_type_property<'a, R>(
&'a self,
id: impl TryInto<KeyStringOrOID>,
f: fn(_: &'a AttributeType) -> Option<&'a R>
) -> Option<&'a R>
pub fn find_attribute_type_property<'a, R>(
&'a self,
id: impl TryInto<KeyStringOrOID>,
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
sourcepub fn find_ldap_syntax(
&self,
id: impl TryInto<ObjectIdentifier>
) -> Option<&LDAPSyntax>
pub fn find_ldap_syntax(
&self,
id: impl TryInto<ObjectIdentifier>
) -> Option<&LDAPSyntax>
return the ldap syntax if it is present in the schema
sourcepub fn find_matching_rule(
&self,
id: impl TryInto<ObjectIdentifier>
) -> Option<&MatchingRule>
pub fn find_matching_rule(
&self,
id: impl TryInto<ObjectIdentifier>
) -> Option<&MatchingRule>
return the matching rule if it is present in the schema
sourcepub fn find_matching_rule_use(
&self,
id: impl TryInto<ObjectIdentifier>
) -> Option<&MatchingRuleUse>
pub fn find_matching_rule_use(
&self,
id: impl TryInto<ObjectIdentifier>
) -> Option<&MatchingRuleUse>
return the matching rule use if it is present in the schema
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 Hash for LDAPSchema
impl Hash for LDAPSchema
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more