pub struct SearchRequest {
pub base: String,
pub scope: Scope,
pub deref: DerefAliases,
pub size_limit: i64,
pub time_limit: i64,
pub types_only: bool,
pub filter: Filter,
pub attributes: Vec<String>,
}Expand description
A SearchRequest, with the defaults a lookup usually wants already set.
Fields§
§base: String§scope: Scope§deref: DerefAliases§size_limit: i64Zero means “no client-side limit”; the directory still has its own.
time_limit: i64Seconds. Zero means no client-side limit.
types_only: boolReturn attribute names without their values.
filter: Filter§attributes: Vec<String>Empty asks for all user attributes. To ask for none, use the OID 1.1,
which RFC 4511 reserves to mean exactly that.
Implementations§
Source§impl SearchRequest
impl SearchRequest
pub fn new(base: impl Into<String>, filter: Filter) -> SearchRequest
pub fn scope(self, scope: Scope) -> SearchRequest
pub fn deref(self, deref: DerefAliases) -> SearchRequest
pub fn size_limit(self, limit: i64) -> SearchRequest
pub fn time_limit(self, seconds: i64) -> SearchRequest
pub fn types_only(self, types_only: bool) -> SearchRequest
pub fn attributes<S: Into<String>>( self, attributes: impl IntoIterator<Item = S>, ) -> SearchRequest
Trait Implementations§
Source§impl Clone for SearchRequest
impl Clone for SearchRequest
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnsafeUnpin for SearchRequest
impl UnwindSafe for SearchRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more