Struct aws_sdk_macie2::types::IpAddressDetails
source · #[non_exhaustive]pub struct IpAddressDetails {
pub ip_address_v4: Option<String>,
pub ip_city: Option<IpCity>,
pub ip_country: Option<IpCountry>,
pub ip_geo_location: Option<IpGeoLocation>,
pub ip_owner: Option<IpOwner>,
}
Expand description
Provides information about the IP address of the device that an entity used to perform an action on an affected resource.
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.ip_address_v4: Option<String>
The Internet Protocol version 4 (IPv4) address of the device.
ip_city: Option<IpCity>
The city that the IP address originated from.
ip_country: Option<IpCountry>
The country that the IP address originated from.
ip_geo_location: Option<IpGeoLocation>
The geographic coordinates of the location that the IP address originated from.
ip_owner: Option<IpOwner>
The registered owner of the IP address.
Implementations§
source§impl IpAddressDetails
impl IpAddressDetails
sourcepub fn ip_address_v4(&self) -> Option<&str>
pub fn ip_address_v4(&self) -> Option<&str>
The Internet Protocol version 4 (IPv4) address of the device.
sourcepub fn ip_country(&self) -> Option<&IpCountry>
pub fn ip_country(&self) -> Option<&IpCountry>
The country that the IP address originated from.
sourcepub fn ip_geo_location(&self) -> Option<&IpGeoLocation>
pub fn ip_geo_location(&self) -> Option<&IpGeoLocation>
The geographic coordinates of the location that the IP address originated from.
source§impl IpAddressDetails
impl IpAddressDetails
sourcepub fn builder() -> IpAddressDetailsBuilder
pub fn builder() -> IpAddressDetailsBuilder
Creates a new builder-style object to manufacture IpAddressDetails
.
Trait Implementations§
source§impl Clone for IpAddressDetails
impl Clone for IpAddressDetails
source§fn clone(&self) -> IpAddressDetails
fn clone(&self) -> IpAddressDetails
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 IpAddressDetails
impl Debug for IpAddressDetails
source§impl PartialEq for IpAddressDetails
impl PartialEq for IpAddressDetails
source§fn eq(&self, other: &IpAddressDetails) -> bool
fn eq(&self, other: &IpAddressDetails) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpAddressDetails
Auto Trait Implementations§
impl Freeze for IpAddressDetails
impl RefUnwindSafe for IpAddressDetails
impl Send for IpAddressDetails
impl Sync for IpAddressDetails
impl Unpin for IpAddressDetails
impl UnwindSafe for IpAddressDetails
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.