Struct digitalocean::api::LoadBalancer
[−]
pub struct LoadBalancer { /* fields omitted */ }
Load Balancers provide a way to distribute traffic across multiple Droplets.
Methods
impl LoadBalancer
fn id(&self) -> &String
A unique ID that can be used to identify and reference a Load Balancer.
fn name(&self) -> &String
A human-readable name for a Load Balancer instance.
fn ip(&self) -> &IpAddr
An attribute containing the public-facing IP address of the Load Balancer.
fn algorithm(&self) -> &String
The load balancing algorithm used to determine which backend Droplet will be selected by a client. It must be either "round_robin" or "least_connections".
fn status(&self) -> &String
A status string indicating the current state of the Load Balancer. This can be "new", "active", or "errored".
fn created_at(&self) -> &DateTime<Utc>
A time value given in ISO8601 combined date and time format that represents when the Load Balancer was created.
fn forwarding_rules(&self) -> &Vec<ForwardingRule>
An object specifying the forwarding rules for a Load Balancer.
fn health_check(&self) -> &HealthCheck
An object specifying health check settings for the Load Balancer.
fn sticky_sessions(&self) -> &StickySessions
An object specifying sticky sessions settings for the Load Balancer.
fn region(&self) -> &Region
The region where the Load Balancer instance is located.
fn tag(&self) -> &String
The name of a Droplet tag corresponding to Droplets assigned to the Load Balancer.
fn droplet_ids(&self) -> &Vec<usize>
An array containing the IDs of the Droplets assigned to the Load Balancer.
fn redirect_http_to_https(&self) -> &bool
A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.
impl LoadBalancer
[src]
fn create<S>(name: S, region: S) -> LoadBalancerRequest<Create, LoadBalancer> where
S: AsRef<str> + Serialize + Display,
S: AsRef<str> + Serialize + Display,
Be sure to include a forwarding rule by chaining .forwarding_rule()
onto this.
Note: It may contain one of the droplets_ids or tag attributes as they are mutually exclusive.
fn get<S>(id: S) -> LoadBalancerRequest<Get, LoadBalancer> where
S: AsRef<str> + Serialize + Display,
S: AsRef<str> + Serialize + Display,
fn list() -> LoadBalancerRequest<List, Vec<LoadBalancer>>
fn update<S>(id: S) -> LoadBalancerRequest<Update, LoadBalancer> where
S: AsRef<str> + Serialize + Display,
S: AsRef<str> + Serialize + Display,
Note: Any attribute that is not provided will be reset to its default value.
Note: It may contain one of the droplets_ids or tag attributes as they are mutually exclusive.
fn delete<S>(id: S) -> LoadBalancerRequest<Delete, ()> where
S: AsRef<str> + Serialize + Display,
S: AsRef<str> + Serialize + Display,
Trait Implementations
impl Debug for LoadBalancer
[src]
impl Clone for LoadBalancer
[src]
fn clone(&self) -> LoadBalancer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more