Struct ldap_types::basic::KeyString
source · pub struct KeyString(pub String);
Expand description
a key string is a string limited to the characters that are safe to use in a key context, e.g. a relative distinguished name, without encoding
Tuple Fields§
§0: String
Implementations§
source§impl KeyString
impl KeyString
sourcepub fn describes_case_insensitive_match(&self) -> bool
pub fn describes_case_insensitive_match(&self) -> bool
this is a quick and dirty helper method to determine if this KeyString describes one of the standard case insensitive matches
not perfect but it is useful when trying to figure out how string LDAP attributes need to be compared
sourcepub fn to_lowercase(&self) -> KeyString
pub fn to_lowercase(&self) -> KeyString
converts the KeyString to lowercase
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyString
impl<'de> Deserialize<'de> for KeyString
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 From<&KeyString> for KeyStringOrOID
impl From<&KeyString> for KeyStringOrOID
source§impl From<KeyString> for KeyStringOrOID
impl From<KeyString> for KeyStringOrOID
source§impl Ord for KeyString
impl Ord for KeyString
source§impl PartialEq for KeyString
impl PartialEq for KeyString
source§impl PartialOrd for KeyString
impl PartialOrd for KeyString
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&KeyStringOrOID> for KeyString
impl TryFrom<&KeyStringOrOID> for KeyString
source§impl TryFrom<KeyStringOrOID> for KeyString
impl TryFrom<KeyStringOrOID> for KeyString
impl Eq for KeyString
impl StructuralEq for KeyString
impl StructuralPartialEq for KeyString
Auto Trait Implementations§
impl RefUnwindSafe for KeyString
impl Send for KeyString
impl Sync for KeyString
impl Unpin for KeyString
impl UnwindSafe for KeyString
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