pub struct LoadBalancerConfig {
pub name: String,
pub lb_type: String,
pub location: String,
pub algorithm: String,
pub targets: Vec<LoadBalancerTarget>,
pub services: Vec<LoadBalancerService>,
}Expand description
Load balancer configuration
Fields§
§name: StringLoad balancer name
lb_type: StringLoad balancer type (e.g., “lb11”, “lb21” for Hetzner)
location: StringLocation/region (e.g., “nbg1”, “fsn1” for Hetzner)
algorithm: StringLoad balancing algorithm (e.g., “round_robin”, “least_connections”)
targets: Vec<LoadBalancerTarget>Target servers for load balancer
services: Vec<LoadBalancerService>Services/ports to expose
Trait Implementations§
Source§impl Clone for LoadBalancerConfig
impl Clone for LoadBalancerConfig
Source§fn clone(&self) -> LoadBalancerConfig
fn clone(&self) -> LoadBalancerConfig
Returns a duplicate 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 LoadBalancerConfig
impl Debug for LoadBalancerConfig
Source§impl<'de> Deserialize<'de> for LoadBalancerConfig
impl<'de> Deserialize<'de> for LoadBalancerConfig
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 Serialize for LoadBalancerConfig
impl Serialize for LoadBalancerConfig
Source§impl Validate for LoadBalancerConfig
impl Validate for LoadBalancerConfig
Source§impl<'v_a> ValidateArgs<'v_a> for LoadBalancerConfig
impl<'v_a> ValidateArgs<'v_a> for LoadBalancerConfig
Auto Trait Implementations§
impl Freeze for LoadBalancerConfig
impl RefUnwindSafe for LoadBalancerConfig
impl Send for LoadBalancerConfig
impl Sync for LoadBalancerConfig
impl Unpin for LoadBalancerConfig
impl UnwindSafe for LoadBalancerConfig
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