pub struct Ingress {
pub target_service: Option<String>,
pub target_ns: Option<String>,
pub target_app: Option<String>,
pub path_prefix: Option<String>,
pub target_port: Option<u32>,
pub type: i32,
pub enable_compression: bool,
pub strip_prefix: bool,
pub auth_exclude: bool,
pub use_https: bool,
pub tls_insecure: bool,
}Fields§
§target_service: Option<String>§target_ns: Option<String>§target_app: Option<String>§path_prefix: Option<String>§target_port: Option<u32>§type: i32§enable_compression: bool§strip_prefix: bool§auth_exclude: bool§use_https: bool§tls_insecure: boolImplementations§
Source§impl Ingress
impl Ingress
Sourcepub fn target_service(&self) -> &str
pub fn target_service(&self) -> &str
Returns the value of target_service, or the default value if target_service is unset.
Sourcepub fn target_ns(&self) -> &str
pub fn target_ns(&self) -> &str
Returns the value of target_ns, or the default value if target_ns is unset.
Sourcepub fn target_app(&self) -> &str
pub fn target_app(&self) -> &str
Returns the value of target_app, or the default value if target_app is unset.
Sourcepub fn path_prefix(&self) -> &str
pub fn path_prefix(&self) -> &str
Returns the value of path_prefix, or the default value if path_prefix is unset.
Sourcepub fn target_port(&self) -> u32
pub fn target_port(&self) -> u32
Returns the value of target_port, or the default value if target_port is unset.
Sourcepub fn type(&self) -> IngressType
pub fn type(&self) -> IngressType
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: IngressType)
pub fn set_type(&mut self, value: IngressType)
Sets type to the provided enum value.
Trait Implementations§
Source§impl Message for Ingress
impl Message for Ingress
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl Eq for Ingress
impl StructuralPartialEq for Ingress
Auto Trait Implementations§
impl Freeze for Ingress
impl RefUnwindSafe for Ingress
impl Send for Ingress
impl Sync for Ingress
impl Unpin for Ingress
impl UnwindSafe for Ingress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request