pub struct LoadBalancer {Show 16 fields
pub id: String,
pub created_on: DateTime<Utc>,
pub modified_on: DateTime<Utc>,
pub description: String,
pub name: String,
pub enabled: bool,
pub ttl: u32,
pub fallback_pool: String,
pub default_pools: Vec<String>,
pub region_pools: HashMap<String, Vec<String>>,
pub pop_pools: HashMap<String, Vec<String>>,
pub proxied: bool,
pub steering_policy: SteeringPolicy,
pub session_affinity: SessionAffinity,
pub session_affinity_attributes: SessionAffinityAttributes,
pub session_affinity_ttl: u32,
}Fields§
§id: String§created_on: DateTime<Utc>§modified_on: DateTime<Utc>§description: String§name: StringThe DNS hostname to associate with your Load Balancer. If this hostname already exists as a DNS record in Cloudflare’s DNS, the Load Balancer will take precedence and the DNS record will not be used.
enabled: bool§ttl: u32Time to live (TTL) of the DNS entry for the IP address returned by this load balancer. This only applies to gray-clouded (unproxied) load balancers.
fallback_pool: StringThe pool ID to use when all other pools are detected as unhealthy.
default_pools: Vec<String>A list of pool IDs ordered by their failover priority. Pools defined here are used by default, or when region_pools are not configured for a given region.
region_pools: HashMap<String, Vec<String>>A mapping of region/country codes to a list of pool IDs (ordered by their failover priority) for the given region. Any regions not explicitly defined will fall back to using default_pools.
pop_pools: HashMap<String, Vec<String>>A mapping of Cloudflare PoP identifiers to a list of pool IDs (ordered by their failover priority) for the PoP (datacenter). Any PoPs not explicitly defined will fall back to using default_pools.
proxied: bool§steering_policy: SteeringPolicy§session_affinity: SessionAffinity§session_affinity_attributes: SessionAffinityAttributes§session_affinity_ttl: u32Trait Implementations§
Source§impl Clone for LoadBalancer
impl Clone for LoadBalancer
Source§fn clone(&self) -> LoadBalancer
fn clone(&self) -> LoadBalancer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoadBalancer
impl Debug for LoadBalancer
Source§impl<'de> Deserialize<'de> for LoadBalancer
impl<'de> Deserialize<'de> for LoadBalancer
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>,
Source§impl PartialEq for LoadBalancer
impl PartialEq for LoadBalancer
Source§impl Serialize for LoadBalancer
impl Serialize for LoadBalancer
impl ApiResult for LoadBalancer
impl Eq for LoadBalancer
impl StructuralPartialEq for LoadBalancer
Auto Trait Implementations§
impl Freeze for LoadBalancer
impl RefUnwindSafe for LoadBalancer
impl Send for LoadBalancer
impl Sync for LoadBalancer
impl Unpin for LoadBalancer
impl UnwindSafe for LoadBalancer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.