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<LoadBalancerTarget>,
}Fields§
§algorithm: Box<LoadBalancerAlgorithm>§created: StringPoint in time when the Resource was created (in RFC3339 format).
id: i64ID of the Load Balancer.
included_traffic: i64Free 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) for the Resource. For more information, see "Labels". | User-defined labels (key/value pairs) for the Resource. Note that the set of Labels provided in the request will overwrite the existing one. For more information, see "Labels".
load_balancer_type: Box<LoadBalancerType>§location: Box<Location>§name: StringName 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<LoadBalancerTarget>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<LoadBalancerTarget>, ) -> LoadBalancer
Trait Implementations§
Source§impl Clone for LoadBalancer
impl Clone for LoadBalancer
Source§fn clone(&self) -> LoadBalancer
fn clone(&self) -> LoadBalancer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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
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 Freeze for LoadBalancer
impl RefUnwindSafe for LoadBalancer
impl Send for LoadBalancer
impl Sync for LoadBalancer
impl Unpin for LoadBalancer
impl UnsafeUnpin 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