Struct google_api_proto::google::cloud::tasks::v2beta3::UriOverride
source · pub struct UriOverride {
pub scheme: Option<i32>,
pub host: Option<String>,
pub port: Option<i64>,
pub path_override: Option<PathOverride>,
pub query_override: Option<QueryOverride>,
pub uri_override_enforce_mode: i32,
}
Expand description
URI Override.
When specified, all the HTTP tasks inside the queue will be partially or fully overridden depending on the configured values.
Fields§
§scheme: Option<i32>
Scheme override.
When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS).
host: Option<String>
Host override.
When specified, replaces the host part of the task URL. For example, if the task URL is “https://www.google.com," and host value is set to “example.net”, the overridden URI will be changed to “https://example.net." Host value cannot be an empty string (INVALID_ARGUMENT).
port: Option<i64>
Port override.
When specified, replaces the port part of the task URI. For instance, for a URI http://www.google.com/foo and port=123, the overridden URI becomes http://www.google.com:123/foo. Note that the port value must be a positive integer. Setting the port to 0 (Zero) clears the URI port.
path_override: Option<PathOverride>
URI path.
When specified, replaces the existing path of the task URL. Setting the path value to an empty string clears the URI path segment.
query_override: Option<QueryOverride>
URI Query.
When specified, replaces the query part of the task URI. Setting the query value to an empty string clears the URI query segment.
uri_override_enforce_mode: i32
URI Override Enforce Mode
When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS.
Implementations§
source§impl UriOverride
impl UriOverride
sourcepub fn scheme(&self) -> Scheme
pub fn scheme(&self) -> Scheme
Returns the enum value of scheme
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_scheme(&mut self, value: Scheme)
pub fn set_scheme(&mut self, value: Scheme)
Sets scheme
to the provided enum value.
sourcepub fn uri_override_enforce_mode(&self) -> UriOverrideEnforceMode
pub fn uri_override_enforce_mode(&self) -> UriOverrideEnforceMode
Returns the enum value of uri_override_enforce_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_uri_override_enforce_mode(&mut self, value: UriOverrideEnforceMode)
pub fn set_uri_override_enforce_mode(&mut self, value: UriOverrideEnforceMode)
Sets uri_override_enforce_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for UriOverride
impl Clone for UriOverride
source§fn clone(&self) -> UriOverride
fn clone(&self) -> UriOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UriOverride
impl Debug for UriOverride
source§impl Default for UriOverride
impl Default for UriOverride
source§impl Message for UriOverride
impl Message for UriOverride
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 UriOverride
impl PartialEq for UriOverride
source§fn eq(&self, other: &UriOverride) -> bool
fn eq(&self, other: &UriOverride) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UriOverride
Auto Trait Implementations§
impl Freeze for UriOverride
impl RefUnwindSafe for UriOverride
impl Send for UriOverride
impl Sync for UriOverride
impl Unpin for UriOverride
impl UnwindSafe for UriOverride
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request