pub struct LoadBalancer { /* private fields */ }
Expand description

Load Balancers provide a way to distribute traffic across multiple Droplets.

Digital Ocean Documentation.

Implementations§

A unique ID that can be used to identify and reference a Load Balancer.

A human-readable name for a Load Balancer instance.

An attribute containing the public-facing IP address of the Load Balancer.

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”.

A status string indicating the current state of the Load Balancer. This can be “new”, “active”, or “errored”.

A time value given in ISO8601 combined date and time format that represents when the Load Balancer was created.

An object specifying the forwarding rules for a Load Balancer.

An object specifying health check settings for the Load Balancer.

An object specifying sticky sessions settings for the Load Balancer.

The region where the Load Balancer instance is located.

The name of a Droplet tag corresponding to Droplets assigned to the Load Balancer.

An array containing the IDs of the Droplets assigned to the Load Balancer.

A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443.

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.

Digital Ocean Documentation.

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.

Digital Ocean Documentation.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.