pub struct User { /* private fields */ }Expand description
User structure
Implementations§
Source§impl User
impl User
pub fn new() -> Self
pub fn properties(&self) -> &UserProperties
pub fn aces(&self) -> &Vec<AceTemplate>
pub fn object_identifier(&self) -> &String
pub fn properties_mut(&mut self) -> &mut UserProperties
pub fn aces_mut(&mut self) -> &mut Vec<AceTemplate>
pub fn object_identifier_mut(&mut self) -> &mut String
Sourcepub fn parse(
&mut self,
result: SearchEntry,
domain: &str,
dn_sid: &mut HashMap<String, String>,
sid_type: &mut HashMap<String, String>,
domain_sid: &str,
schema_guid_map: &HashMap<String, String>,
) -> Result<(), Box<dyn Error>>
pub fn parse( &mut self, result: SearchEntry, domain: &str, dn_sid: &mut HashMap<String, String>, sid_type: &mut HashMap<String, String>, domain_sid: &str, schema_guid_map: &HashMap<String, String>, ) -> Result<(), Box<dyn Error>>
Function to parse and replace value for user object. https://bloodhound.readthedocs.io/en/latest/further-reading/json.html#users
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl LdapObject for User
Function to change some values from LdapObject trait for User
impl LdapObject for User
Function to change some values from LdapObject trait for User
fn to_json(&self) -> Value
fn get_object_identifier(&self) -> &String
fn get_is_acl_protected(&self) -> &bool
fn get_aces(&self) -> &Vec<AceTemplate>
fn get_spntargets(&self) -> &Vec<SPNTarget>
fn get_allowed_to_delegate(&self) -> &Vec<Member>
fn get_links(&self) -> &Vec<Link>
fn get_contained_by(&self) -> &Option<Member>
fn get_child_objects(&self) -> &Vec<Member>
fn get_haslaps(&self) -> &bool
fn get_aces_mut(&mut self) -> &mut Vec<AceTemplate>
fn get_spntargets_mut(&mut self) -> &mut Vec<SPNTarget>
fn get_allowed_to_delegate_mut(&mut self) -> &mut Vec<Member>
fn set_is_acl_protected(&mut self, is_acl_protected: bool)
fn set_aces(&mut self, aces: Vec<AceTemplate>)
fn set_spntargets(&mut self, spn_targets: Vec<SPNTarget>)
fn set_allowed_to_delegate(&mut self, allowed_to_delegate: Vec<Member>)
fn set_links(&mut self, _links: Vec<Link>)
fn set_contained_by(&mut self, contained_by: Option<Member>)
fn set_child_objects(&mut self, _child_objects: Vec<Member>)
fn set_owner_rights_flags(&mut self, any: bool, any_inherited: bool)
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more