pub struct Computer { /* private fields */ }Expand description
Computer structure
Implementations§
Source§impl Computer
impl Computer
pub fn new() -> Self
pub fn properties(&self) -> &ComputerProperties
pub fn object_identifier(&self) -> &String
pub fn allowed_to_act(&self) -> &Vec<Member>
pub fn allowed_to_act_mut(&mut self) -> &mut Vec<Member>
Sourcepub fn parse(
&mut self,
result: SearchEntry,
domain: &str,
dn_sid: &mut HashMap<String, String>,
sid_type: &mut HashMap<String, String>,
fqdn_sid: &mut HashMap<String, String>,
fqdn_ip: &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>, fqdn_sid: &mut HashMap<String, String>, fqdn_ip: &mut HashMap<String, String>, domain_sid: &str, schema_guid_map: &HashMap<String, String>, ) -> Result<(), Box<dyn Error>>
Function to parse and replace value for computer object. https://bloodhound.readthedocs.io/en/latest/further-reading/json.html#computers
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Computer
impl<'de> Deserialize<'de> for Computer
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 Computer
impl LdapObject for Computer
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>)
Auto Trait Implementations§
impl Freeze for Computer
impl RefUnwindSafe for Computer
impl Send for Computer
impl Sync for Computer
impl Unpin for Computer
impl UnsafeUnpin for Computer
impl UnwindSafe for Computer
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