pub struct User { /* private fields */ }Expand description
The user fields describe information about the user that is relevant to the event.
Fields can have one entry or multiple entries. If a user has more than one id, provide an array that includes all of them.
Implementations§
Source§impl User
impl User
Sourcepub fn get_full_name(&self) -> Option<&String>
pub fn get_full_name(&self) -> Option<&String>
User’s full name, if available.
Sourcepub fn set_full_name(&mut self, full_name_arg: String)
pub fn set_full_name(&mut self, full_name_arg: String)
Sourcepub fn get_hash(&self) -> Option<&String>
pub fn get_hash(&self) -> Option<&String>
Unique user hash to correlate information for a user in anonymized form.
Useful if user.id or user.name contain confidential information and cannot be used.
Sourcepub fn set_hash(&mut self, hash_arg: String)
pub fn set_hash(&mut self, hash_arg: String)
Unique user hash to correlate information for a user in anonymized form.
Useful if user.id or user.name contain confidential information and cannot be used.
Sourcepub fn get_domain(&self) -> Option<&String>
pub fn get_domain(&self) -> Option<&String>
Name of the directory the user is a member of.
For example, an LDAP or Active Directory domain name.
Sourcepub fn set_domain(&mut self, domain_arg: String)
pub fn set_domain(&mut self, domain_arg: String)
Name of the directory the user is a member of.
For example, an LDAP or Active Directory domain name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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