#[non_exhaustive]pub struct UptimeCheckIp {
pub region: UptimeCheckRegion,
pub location: String,
pub ip_address: String,
}Expand description
Contains the region, location, and list of IP addresses where checkers in the location run from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.region: UptimeCheckRegionA broad region category in which the IP address is located.
location: StringA more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.
ip_address: StringThe IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.
Implementations§
Source§impl UptimeCheckIp
impl UptimeCheckIp
Sourcepub fn set_region<T: Into<UptimeCheckRegion>>(self, v: T) -> Self
pub fn set_region<T: Into<UptimeCheckRegion>>(self, v: T) -> Self
Sets the value of region.
Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sets the value of location.
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_address.
Trait Implementations§
Source§impl Clone for UptimeCheckIp
impl Clone for UptimeCheckIp
Source§fn clone(&self) -> UptimeCheckIp
fn clone(&self) -> UptimeCheckIp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more