#[non_exhaustive]pub struct DropInfo {
pub cause: Cause,
pub resource_uri: String,
pub source_ip: String,
pub destination_ip: String,
pub region: String,
pub source_geolocation_code: String,
pub destination_geolocation_code: String,
/* private fields */
}Expand description
Details of the final state “drop” and associated 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.cause: CauseCause that the packet is dropped.
resource_uri: StringURI of the resource that caused the drop.
source_ip: StringSource IP address of the dropped packet (if relevant).
destination_ip: StringDestination IP address of the dropped packet (if relevant).
region: StringRegion of the dropped packet (if relevant).
source_geolocation_code: StringGeolocation (region code) of the source IP address (if relevant).
destination_geolocation_code: StringGeolocation (region code) of the destination IP address (if relevant).
Implementations§
Source§impl DropInfo
impl DropInfo
Sourcepub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_source_ip<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_destination_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_ip<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_region<T: Into<String>>(self, v: T) -> Self
pub fn set_region<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_geolocation_code<T: Into<String>>(self, v: T) -> Self
pub fn set_source_geolocation_code<T: Into<String>>(self, v: T) -> Self
Sets the value of source_geolocation_code.
§Example
ⓘ
let x = DropInfo::new().set_source_geolocation_code("example");Sourcepub fn set_destination_geolocation_code<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_geolocation_code<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_geolocation_code.
§Example
ⓘ
let x = DropInfo::new().set_destination_geolocation_code("example");Trait Implementations§
impl StructuralPartialEq for DropInfo
Auto Trait Implementations§
impl Freeze for DropInfo
impl RefUnwindSafe for DropInfo
impl Send for DropInfo
impl Sync for DropInfo
impl Unpin for DropInfo
impl UnsafeUnpin for DropInfo
impl UnwindSafe for DropInfo
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