pub struct AdObject {
pub dn: String,
pub attrs: HashMap<String, Vec<String>>,
pub bin: HashMap<String, Vec<Vec<u8>>>,
}Fields§
§dn: String§attrs: HashMap<String, Vec<String>>§bin: HashMap<String, Vec<Vec<u8>>>Raw binary attributes (objectSid, nTSecurityDescriptor, objectGUID, …).
Implementations§
Source§impl AdObject
impl AdObject
pub fn one(&self, attr: &str) -> Option<&str>
pub fn all(&self, attr: &str) -> &[String]
pub fn int(&self, attr: &str) -> Option<i64>
pub fn bin1(&self, attr: &str) -> Option<&[u8]>
Sourcepub fn bin_all(&self, attr: &str) -> &[Vec<u8>]
pub fn bin_all(&self, attr: &str) -> &[Vec<u8>]
All values of a multi-valued binary attribute (e.g. sIDHistory).
pub fn uac(&self) -> u32
pub fn has_class(&self, class: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdObject
impl RefUnwindSafe for AdObject
impl Send for AdObject
impl Sync for AdObject
impl Unpin for AdObject
impl UnsafeUnpin for AdObject
impl UnwindSafe for AdObject
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