pub struct Builder { /* private fields */ }
Expand description
A builder for Network
.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn direction(self, input: NetworkDirection) -> Self
pub fn direction(self, input: NetworkDirection) -> Self
The direction of network traffic associated with a finding.
sourcepub fn set_direction(self, input: Option<NetworkDirection>) -> Self
pub fn set_direction(self, input: Option<NetworkDirection>) -> Self
The direction of network traffic associated with a finding.
sourcepub fn protocol(self, input: impl Into<String>) -> Self
pub fn protocol(self, input: impl Into<String>) -> Self
The protocol of network-related information about a finding.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The protocol of network-related information about a finding.
sourcepub fn open_port_range(self, input: PortRange) -> Self
pub fn open_port_range(self, input: PortRange) -> Self
The range of open ports that is present on the network.
sourcepub fn set_open_port_range(self, input: Option<PortRange>) -> Self
pub fn set_open_port_range(self, input: Option<PortRange>) -> Self
The range of open ports that is present on the network.
sourcepub fn source_ip_v4(self, input: impl Into<String>) -> Self
pub fn source_ip_v4(self, input: impl Into<String>) -> Self
The source IPv4 address of network-related information about a finding.
sourcepub fn set_source_ip_v4(self, input: Option<String>) -> Self
pub fn set_source_ip_v4(self, input: Option<String>) -> Self
The source IPv4 address of network-related information about a finding.
sourcepub fn source_ip_v6(self, input: impl Into<String>) -> Self
pub fn source_ip_v6(self, input: impl Into<String>) -> Self
The source IPv6 address of network-related information about a finding.
sourcepub fn set_source_ip_v6(self, input: Option<String>) -> Self
pub fn set_source_ip_v6(self, input: Option<String>) -> Self
The source IPv6 address of network-related information about a finding.
sourcepub fn source_port(self, input: i32) -> Self
pub fn source_port(self, input: i32) -> Self
The source port of network-related information about a finding.
sourcepub fn set_source_port(self, input: Option<i32>) -> Self
pub fn set_source_port(self, input: Option<i32>) -> Self
The source port of network-related information about a finding.
sourcepub fn source_domain(self, input: impl Into<String>) -> Self
pub fn source_domain(self, input: impl Into<String>) -> Self
The source domain of network-related information about a finding.
sourcepub fn set_source_domain(self, input: Option<String>) -> Self
pub fn set_source_domain(self, input: Option<String>) -> Self
The source domain of network-related information about a finding.
sourcepub fn source_mac(self, input: impl Into<String>) -> Self
pub fn source_mac(self, input: impl Into<String>) -> Self
The source media access control (MAC) address of network-related information about a finding.
sourcepub fn set_source_mac(self, input: Option<String>) -> Self
pub fn set_source_mac(self, input: Option<String>) -> Self
The source media access control (MAC) address of network-related information about a finding.
sourcepub fn destination_ip_v4(self, input: impl Into<String>) -> Self
pub fn destination_ip_v4(self, input: impl Into<String>) -> Self
The destination IPv4 address of network-related information about a finding.
sourcepub fn set_destination_ip_v4(self, input: Option<String>) -> Self
pub fn set_destination_ip_v4(self, input: Option<String>) -> Self
The destination IPv4 address of network-related information about a finding.
sourcepub fn destination_ip_v6(self, input: impl Into<String>) -> Self
pub fn destination_ip_v6(self, input: impl Into<String>) -> Self
The destination IPv6 address of network-related information about a finding.
sourcepub fn set_destination_ip_v6(self, input: Option<String>) -> Self
pub fn set_destination_ip_v6(self, input: Option<String>) -> Self
The destination IPv6 address of network-related information about a finding.
sourcepub fn destination_port(self, input: i32) -> Self
pub fn destination_port(self, input: i32) -> Self
The destination port of network-related information about a finding.
sourcepub fn set_destination_port(self, input: Option<i32>) -> Self
pub fn set_destination_port(self, input: Option<i32>) -> Self
The destination port of network-related information about a finding.
sourcepub fn destination_domain(self, input: impl Into<String>) -> Self
pub fn destination_domain(self, input: impl Into<String>) -> Self
The destination domain of network-related information about a finding.
sourcepub fn set_destination_domain(self, input: Option<String>) -> Self
pub fn set_destination_domain(self, input: Option<String>) -> Self
The destination domain of network-related information about a finding.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more