Struct ldap3::result::SearchResult [] [src]

pub struct SearchResult(pub Vec<ResultEntry>, pub LdapResult);

Wrapper for results of a Search operation which returns all entries at once.

The wrapper exists so that methods success() and non_error() can be called on an instance. Those methods destructure the wrapper and return its components as elements of an anonymous tuple.

Methods

impl SearchResult
[src]

If the result code is zero, return an anonymous tuple of component structs wrapped in Ok(), otherwise wrap the LdapResult part in an io::Error.

If the result code is 0 or 10 (referral), return an anonymous tuple of component structs wrapped in Ok(), otherwise wrap the LdapResult part in an io::Error.

Trait Implementations

impl Clone for SearchResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SearchResult
[src]

Formats the value using the given formatter.