[−][src]Struct ldap3::exop::PasswordModify
Password Modify extended operation (RFC 3062).
The structure contains elements of a Password Modify request. The precise semantics of having a particular field present or absent will depend on the server receiving the request; consult the server documentation. Some rules are prescribed by the RFC and should generally apply:
-
The
user_id
field contains the identity of the user whose password is being changed. This may or may not be a DN. If the field is absent, the identity associated with the current connection will be used. -
If
old_pass
is present, it must match the existing password. -
If
new_pass
is not present, the server may autogenerate the new password.
Although the specification doesn't constrain the values of old and new passwords, this implementation limits them to UTF-8 strings.
Fields
user_id: Option<&'a str>
old_pass: Option<&'a str>
new_pass: Option<&'a str>
Trait Implementations
impl<'a> Clone for PasswordModify<'a>
[src]
pub fn clone(&self) -> PasswordModify<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for PasswordModify<'a>
[src]
impl<'a> From<PasswordModify<'a>> for Exop
[src]
pub fn from(pm: PasswordModify<'a>) -> Exop
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for PasswordModify<'a>
[src]
impl<'a> Send for PasswordModify<'a>
[src]
impl<'a> Sync for PasswordModify<'a>
[src]
impl<'a> Unpin for PasswordModify<'a>
[src]
impl<'a> UnwindSafe for PasswordModify<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,