pub struct UpdateRule {
pub balancer_proto: BalancerProto,
pub balancer_port: f64,
pub server_proto: ServerProto,
pub server_port: f64,
}Fields§
§balancer_proto: BalancerProtoПротокол балансировщика.
balancer_port: f64Порт балансировщика.
server_proto: ServerProtoПротокол сервера.
server_port: f64Порт сервера.
Implementations§
Source§impl UpdateRule
impl UpdateRule
pub fn new( balancer_proto: BalancerProto, balancer_port: f64, server_proto: ServerProto, server_port: f64, ) -> UpdateRule
Trait Implementations§
Source§impl Clone for UpdateRule
impl Clone for UpdateRule
Source§fn clone(&self) -> UpdateRule
fn clone(&self) -> UpdateRule
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 UpdateRule
impl Debug for UpdateRule
Source§impl Default for UpdateRule
impl Default for UpdateRule
Source§fn default() -> UpdateRule
fn default() -> UpdateRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateRule
impl<'de> Deserialize<'de> for UpdateRule
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 UpdateRule
impl PartialEq for UpdateRule
Source§fn eq(&self, other: &UpdateRule) -> bool
fn eq(&self, other: &UpdateRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateRule
impl Serialize for UpdateRule
impl StructuralPartialEq for UpdateRule
Auto Trait Implementations§
impl Freeze for UpdateRule
impl RefUnwindSafe for UpdateRule
impl Send for UpdateRule
impl Sync for UpdateRule
impl Unpin for UpdateRule
impl UnsafeUnpin for UpdateRule
impl UnwindSafe for UpdateRule
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