Struct cloudflare::endpoints::load_balancing::create_lb::OptionalParams
source · [−]pub struct OptionalParams<'a> {
pub description: Option<&'a str>,
pub ttl: Option<u32>,
pub pop_pools: Option<HashMap<String, Vec<String>>>,
pub region_pools: Option<HashMap<String, Vec<String>>>,
pub proxied: Option<bool>,
pub steering_policy: Option<SteeringPolicy>,
pub session_affinity: Option<SessionAffinity>,
pub session_affinity_attributes: Option<SessionAffinityAttributes>,
pub session_affinity_ttl: Option<u32>,
}
Expand description
Optional parameters for creating a Load Balancer.
Fields
description: Option<&'a str>
ttl: Option<u32>
Time 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.
pop_pools: Option<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.
region_pools: Option<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.
proxied: Option<bool>
steering_policy: Option<SteeringPolicy>
session_affinity: Option<SessionAffinity>
session_affinity_attributes: Option<SessionAffinityAttributes>
session_affinity_ttl: Option<u32>
Trait Implementations
sourceimpl<'a> Clone for OptionalParams<'a>
impl<'a> Clone for OptionalParams<'a>
sourcefn clone(&self) -> OptionalParams<'a>
fn clone(&self) -> OptionalParams<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for OptionalParams<'a>
impl<'a> Debug for OptionalParams<'a>
sourceimpl<'a> Default for OptionalParams<'a>
impl<'a> Default for OptionalParams<'a>
sourcefn default() -> OptionalParams<'a>
fn default() -> OptionalParams<'a>
Returns the “default value” for a type. Read more
sourceimpl<'a> Serialize for OptionalParams<'a>
impl<'a> Serialize for OptionalParams<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for OptionalParams<'a>
impl<'a> Send for OptionalParams<'a>
impl<'a> Sync for OptionalParams<'a>
impl<'a> Unpin for OptionalParams<'a>
impl<'a> UnwindSafe for OptionalParams<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more