pub struct Snapshot {
pub domain: DomainInfo,
pub objects: Vec<AdObject>,
/* private fields */
}Fields§
§domain: DomainInfo§objects: Vec<AdObject>Implementations§
Source§impl Snapshot
impl Snapshot
pub fn new(domain: DomainInfo, objects: Vec<AdObject>) -> Self
pub fn by_dn(&self, dn: &str) -> Option<&AdObject>
Sourcepub fn by_sam(&self, sam: &str) -> Option<&AdObject>
pub fn by_sam(&self, sam: &str) -> Option<&AdObject>
Find a group/object by sAMAccountName (case-insensitive). Locale-dependent —
prefer by_sid for well-known groups.
pub fn iter_class<'a>( &'a self, class: &'a str, ) -> impl Iterator<Item = &'a AdObject>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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