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 “https://www.example.com/example” and port=123, the overridden URI becomes “https://www.example.com:123/example”. 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 more