pub struct UriOverride {
pub host: Option<String>,
pub path_override: Option<PathOverride>,
pub port: Option<i64>,
pub query_override: Option<QueryOverride>,
pub scheme: Option<String>,
pub uri_override_enforce_mode: Option<String>,
}
Expand description
URI Override. When specified, all the HTTP tasks inside the queue will be partially or fully overridden depending on the configured values.
This type is not used in any activity, and only used as part of another schema.
Fields§
§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).
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.
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.
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.
scheme: Option<String>
Scheme override. When specified, the task URI scheme is replaced by the provided value (HTTP or HTTPS).
uri_override_enforce_mode: Option<String>
URI Override Enforce Mode When specified, determines the Target UriOverride mode. If not specified, it defaults to ALWAYS.
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§fn default() -> UriOverride
fn default() -> UriOverride
Source§impl<'de> Deserialize<'de> for UriOverride
impl<'de> Deserialize<'de> for UriOverride
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 Serialize for UriOverride
impl Serialize for UriOverride
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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