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.
Methods
impl Exop
[src]
fn parse<T: ExopParser>(&self) -> T
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]
impl Clone for Exop
[src]
fn clone(&self) -> Exop
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more