pub struct GeoPolicy {
pub enable_fencing: Option<bool>,
pub item: Option<Vec<GeoPolicyItem>>,
}Expand description
Configures a RRSetRoutingPolicy that routes based on the geo location of the querying user.
This type is not used in any activity, and only used as part of another schema.
Fields§
§enable_fencing: Option<bool>Without fencing, if health check fails for all configured items in the current geo bucket, we failover to the next nearest geo bucket. With fencing, if health checking is enabled, as long as some targets in the current geo bucket are healthy, we return only the healthy targets. However, if all targets are unhealthy, we don’t failover to the next nearest bucket; instead, we return all the items in the current bucket even when all targets are unhealthy.
item: Option<Vec<GeoPolicyItem>>The primary geo routing configuration. If there are multiple items with the same location, an error is returned instead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GeoPolicy
impl<'de> Deserialize<'de> for GeoPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GeoPolicy
Auto Trait Implementations§
impl Freeze for GeoPolicy
impl RefUnwindSafe for GeoPolicy
impl Send for GeoPolicy
impl Sync for GeoPolicy
impl Unpin for GeoPolicy
impl UnwindSafe for GeoPolicy
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