Struct hcloud::models::load_balancer::LoadBalancer
source · pub struct LoadBalancer {Show 15 fields
pub algorithm: Box<LoadBalancerAlgorithm>,
pub created: String,
pub id: i64,
pub included_traffic: i64,
pub ingoing_traffic: Option<i64>,
pub labels: HashMap<String, String>,
pub load_balancer_type: Box<LoadBalancerType>,
pub location: Box<Location>,
pub name: String,
pub outgoing_traffic: Option<i64>,
pub private_net: Vec<LoadBalancerPrivateNet>,
pub protection: Box<Protection>,
pub public_net: Box<LoadBalancerPublicNet>,
pub services: Vec<LoadBalancerService>,
pub targets: Vec<Target>,
}
Fields§
§algorithm: Box<LoadBalancerAlgorithm>
§created: String
Point in time when the Resource was created (in ISO-8601 format)
id: i64
ID of the Resource
included_traffic: i64
Free Traffic for the current billing period in bytes
ingoing_traffic: Option<i64>
Inbound Traffic for the current billing period in bytes
labels: HashMap<String, String>
User-defined labels (key-value pairs)
load_balancer_type: Box<LoadBalancerType>
§location: Box<Location>
§name: String
Name of the Resource. Must be unique per Project.
outgoing_traffic: Option<i64>
Outbound Traffic for the current billing period in bytes
private_net: Vec<LoadBalancerPrivateNet>
Private networks information
protection: Box<Protection>
§public_net: Box<LoadBalancerPublicNet>
§services: Vec<LoadBalancerService>
List of services that belong to this Load Balancer
targets: Vec<Target>
List of targets that belong to this Load Balancer
Implementations§
source§impl LoadBalancer
impl LoadBalancer
pub fn new( algorithm: LoadBalancerAlgorithm, created: String, id: i64, included_traffic: i64, ingoing_traffic: Option<i64>, labels: HashMap<String, String>, load_balancer_type: LoadBalancerType, location: Location, name: String, outgoing_traffic: Option<i64>, private_net: Vec<LoadBalancerPrivateNet>, protection: Protection, public_net: LoadBalancerPublicNet, services: Vec<LoadBalancerService>, targets: Vec<Target> ) -> LoadBalancer
Trait Implementations§
source§impl Clone for LoadBalancer
impl Clone for LoadBalancer
source§fn clone(&self) -> LoadBalancer
fn clone(&self) -> LoadBalancer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LoadBalancer
impl Debug for LoadBalancer
source§impl Default for LoadBalancer
impl Default for LoadBalancer
source§fn default() -> LoadBalancer
fn default() -> LoadBalancer
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for LoadBalancer
impl PartialEq for LoadBalancer
source§fn eq(&self, other: &LoadBalancer) -> bool
fn eq(&self, other: &LoadBalancer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LoadBalancer
impl Serialize for LoadBalancer
impl StructuralPartialEq for LoadBalancer
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more