Struct hcloud::models::load_balancer_service::LoadBalancerService
source · pub struct LoadBalancerService {
pub destination_port: i32,
pub health_check: Box<LoadBalancerServiceHealthCheck>,
pub http: Option<Box<Http>>,
pub listen_port: i32,
pub protocol: Protocol,
pub proxyprotocol: bool,
}
Expand description
LoadBalancerService : A service for a Load Balancer.
Fields§
§destination_port: i32
Port the Load Balancer will balance to
health_check: Box<LoadBalancerServiceHealthCheck>
§http: Option<Box<Http>>
§listen_port: i32
Port the Load Balancer listens on
protocol: Protocol
Protocol of the Load Balancer
proxyprotocol: bool
Is Proxyprotocol enabled or not
Implementations§
source§impl LoadBalancerService
impl LoadBalancerService
sourcepub fn new(
destination_port: i32,
health_check: LoadBalancerServiceHealthCheck,
listen_port: i32,
protocol: Protocol,
proxyprotocol: bool
) -> LoadBalancerService
pub fn new( destination_port: i32, health_check: LoadBalancerServiceHealthCheck, listen_port: i32, protocol: Protocol, proxyprotocol: bool ) -> LoadBalancerService
A service for a Load Balancer.
Trait Implementations§
source§impl Clone for LoadBalancerService
impl Clone for LoadBalancerService
source§fn clone(&self) -> LoadBalancerService
fn clone(&self) -> LoadBalancerService
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 LoadBalancerService
impl Debug for LoadBalancerService
source§impl Default for LoadBalancerService
impl Default for LoadBalancerService
source§fn default() -> LoadBalancerService
fn default() -> LoadBalancerService
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LoadBalancerService
impl<'de> Deserialize<'de> for LoadBalancerService
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 LoadBalancerService
impl PartialEq for LoadBalancerService
source§fn eq(&self, other: &LoadBalancerService) -> bool
fn eq(&self, other: &LoadBalancerService) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LoadBalancerService
impl Serialize for LoadBalancerService
impl StructuralPartialEq for LoadBalancerService
Auto Trait Implementations§
impl RefUnwindSafe for LoadBalancerService
impl Send for LoadBalancerService
impl Sync for LoadBalancerService
impl Unpin for LoadBalancerService
impl UnwindSafe for LoadBalancerService
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