Struct aws_sdk_securityhub::types::NetworkHeader
source · #[non_exhaustive]pub struct NetworkHeader {
pub protocol: Option<String>,
pub destination: Option<NetworkPathComponentDetails>,
pub source: Option<NetworkPathComponentDetails>,
}
Expand description
Details about a network path component that occurs before or after the current component.
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.protocol: Option<String>
The protocol used for the component.
destination: Option<NetworkPathComponentDetails>
Information about the destination of the component.
source: Option<NetworkPathComponentDetails>
Information about the origin of the component.
Implementations§
source§impl NetworkHeader
impl NetworkHeader
sourcepub fn destination(&self) -> Option<&NetworkPathComponentDetails>
pub fn destination(&self) -> Option<&NetworkPathComponentDetails>
Information about the destination of the component.
sourcepub fn source(&self) -> Option<&NetworkPathComponentDetails>
pub fn source(&self) -> Option<&NetworkPathComponentDetails>
Information about the origin of the component.
source§impl NetworkHeader
impl NetworkHeader
sourcepub fn builder() -> NetworkHeaderBuilder
pub fn builder() -> NetworkHeaderBuilder
Creates a new builder-style object to manufacture NetworkHeader
.
Trait Implementations§
source§impl Clone for NetworkHeader
impl Clone for NetworkHeader
source§fn clone(&self) -> NetworkHeader
fn clone(&self) -> NetworkHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NetworkHeader
impl Debug for NetworkHeader
source§impl PartialEq for NetworkHeader
impl PartialEq for NetworkHeader
source§fn eq(&self, other: &NetworkHeader) -> bool
fn eq(&self, other: &NetworkHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkHeader
Auto Trait Implementations§
impl RefUnwindSafe for NetworkHeader
impl Send for NetworkHeader
impl Sync for NetworkHeader
impl Unpin for NetworkHeader
impl UnwindSafe for NetworkHeader
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