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

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

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

Methods

impl Exop
[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 From<WhoAmI> for Exop
[src]

Performs the conversion.

impl Clone for Exop
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Exop
[src]

Formats the value using the given formatter.