Struct ldap3::exop::Exop[][src]

pub struct Exop {
    pub name: Option<String>,
    pub val: Option<Vec<u8>>,
}

Generic extended operation.

Since the same struct can be used both for requests and responses, both fields must be declared as optional; when sending an extended request, name must not be None.

Fields

name: Option<String>

OID of the operation. It may be absent in the response.

val: Option<Vec<u8>>

Request or response value. It may be absent in both cases.

Implementations

impl Exop[src]

pub fn parse<T: ExopParser>(&self) -> T[src]

Parse the generic exop into a exop-specific struct.

The parser will panic if the value is None. See control parsing, which behaves analogously, for discussion and rationale.

Trait Implementations

impl Clone for Exop[src]

impl Debug for Exop[src]

impl<'a> From<PasswordModify<'a>> for Exop[src]

impl From<WhoAmI> for Exop[src]

Auto Trait Implementations

impl RefUnwindSafe for Exop

impl Send for Exop

impl Sync for Exop

impl Unpin for Exop

impl UnwindSafe for Exop

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.