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§fn clone(&self) -> ClientEndpoint
fn clone(&self) -> ClientEndpoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientEndpoint
impl Debug for ClientEndpoint
Source§impl Default for ClientEndpoint
impl Default for ClientEndpoint
Source§fn default() -> ClientEndpoint
fn default() -> ClientEndpoint
Source§impl<'de> Deserialize<'de> for ClientEndpoint
impl<'de> Deserialize<'de> for ClientEndpoint
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientEndpoint, <__D as Deserializer<'de>>::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.Source§impl PartialEq for ClientEndpoint
impl PartialEq for ClientEndpoint
Source§impl Serialize for ClientEndpoint
impl Serialize for ClientEndpoint
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Forget for ClientEndpoint
impl Freeze for ClientEndpoint
impl Move for ClientEndpoint
impl RefUnwindSafe for ClientEndpoint
impl Send for ClientEndpoint
impl Sync for ClientEndpoint
impl Unpin for ClientEndpoint
impl UnsafeUnpin for ClientEndpoint
impl UnwindSafe for ClientEndpoint
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more