#[non_exhaustive]pub struct Reporter {
pub hostname: Option<String>,
pub ip: Option<String>,
pub name: Option<String>,
pub org: Option<Box<Organization>>,
pub uid: Option<String>,
}Expand description
Reporter
The entity from which an event or finding was reported.
[] Category: | Name: reporter
Constraints:
- at_least_one:
[name,uid]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hostname: Option<String>Hostname
The hostname of the entity from which the event or finding was reported.
recommended
ip: Option<String>IP Address
The IP address of the entity from which the event or finding was reported.
recommended
name: Option<String>Name
The name of the entity from which the event or finding was reported.
recommended
org: Option<Box<Organization>>Organization
The organization properties of the entity that reported the event or finding.
optional
uid: Option<String>Unique ID
The unique identifier of the entity from which the event or finding was reported.
recommended
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reporter
impl<'de> Deserialize<'de> for Reporter
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
impl StructuralPartialEq for Reporter
Auto Trait Implementations§
impl Freeze for Reporter
impl RefUnwindSafe for Reporter
impl Send for Reporter
impl Sync for Reporter
impl Unpin for Reporter
impl UnwindSafe for Reporter
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