pub struct ClientEndpoint {Show 13 fields
pub local_proto: i32,
pub local_addr: String,
pub local_port: u32,
pub local_path: String,
pub nodelay: Option<bool>,
pub description: Option<String>,
pub auth: Option<i32>,
pub acl: Vec<Acl>,
pub username: Option<String>,
pub password: Option<String>,
pub headers: Vec<Header>,
pub filter_rules: Vec<FilterRule>,
pub proxy_protocol: Option<i32>,
}Fields§
§local_proto: i32§local_addr: String§local_port: u32§local_path: String§nodelay: Option<bool>§description: Option<String>§auth: Option<i32>Absent means “not specified”: a re-registration keeps whatever the user configured instead of resetting it to the default - CLOUDPUB-1208.
acl: Vec<Acl>§username: Option<String>§password: Option<String>§headers: Vec<Header>§filter_rules: Vec<FilterRule>§proxy_protocol: Option<i32>The CLI cannot set this, so it must be able to say nothing about it and let the stored value stand - CLOUDPUB-1241.
Implementations§
Source§impl ClientEndpoint
impl ClientEndpoint
Sourcepub fn local_proto(&self) -> Protocol
pub fn local_proto(&self) -> Protocol
Returns the enum value of local_proto, or the default if the field is set to an invalid enum value.
Sourcepub fn set_local_proto(&mut self, value: Protocol)
pub fn set_local_proto(&mut self, value: Protocol)
Sets local_proto to the provided enum value.
Sourcepub fn nodelay(&self) -> bool
pub fn nodelay(&self) -> bool
Returns the value of nodelay, or the default value if nodelay is unset.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn auth(&self) -> Auth
pub fn auth(&self) -> Auth
Returns the enum value of auth, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn username(&self) -> &str
pub fn username(&self) -> &str
Returns the value of username, or the default value if username is unset.
Sourcepub fn password(&self) -> &str
pub fn password(&self) -> &str
Returns the value of password, or the default value if password is unset.
Sourcepub fn proxy_protocol(&self) -> ProxyProtocol
pub fn proxy_protocol(&self) -> ProxyProtocol
Returns the enum value of proxy_protocol, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_proxy_protocol(&mut self, value: ProxyProtocol)
pub fn set_proxy_protocol(&mut self, value: ProxyProtocol)
Sets proxy_protocol to the provided enum value.
Trait Implementations§
Source§impl Clone for ClientEndpoint
impl Clone for ClientEndpoint
Source§impl Debug for ClientEndpoint
impl Debug for ClientEndpoint
Source§impl Default for ClientEndpoint
impl Default for ClientEndpoint
Source§impl<'de> Deserialize<'de> for ClientEndpoint
impl<'de> Deserialize<'de> for ClientEndpoint
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>,
Source§impl Display for ClientEndpoint
impl Display for ClientEndpoint
Source§impl Endpoint for ClientEndpoint
impl Endpoint for ClientEndpoint
Source§impl Message for ClientEndpoint
impl Message for ClientEndpoint
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.