pub struct ProxySettingsRoute {
pub backend_name: Option<String>,
pub continent: Vec<Value>,
pub country: Vec<Value>,
pub path: Option<String>,
pub rank: Option<String>,
pub regex: Option<bool>,
pub region: Vec<Value>,
}
Expand description
A ProxySettings route entity
JSON schema
{
"description": "A ProxySettings route entity",
"type": "object",
"properties": {
"backend_name": {
"description": "The name of the backend to which requests that match this rule should be routed.",
"type": "string"
},
"continent": {
"description": "An optional vector of strings that represent the continents associated with an IP address. If this is set, the rule only applies to requests from IP addresses in the specified continents.",
"type": "array"
},
"country": {
"description": "An optional vector of strings that represent the countries associated with an IP address. If this is set, the rule only applies to requests from IP addresses in the specified countries.",
"type": "array"
},
"path": {
"description": "A string that represents the path for which this rule applies. This can be a regular expression if `regex` is set to `true`.",
"type": "string"
},
"rank": {
"description": "An integer that represents the rank of this rule. Rules with lower ranks are evaluated before rules with higher ranks.",
"type": "string"
},
"regex": {
"description": "A boolean that indicates whether the `path` is a regular expression.",
"type": "boolean"
},
"region": {
"description": "An optional vector of strings that represent the general regions of the world in which the Fastly POP processing the current Compute instance resides. If this is set, the rule only applies to requests from the specified regions.",
"type": "array"
}
}
}
Fields§
§backend_name: Option<String>
The name of the backend to which requests that match this rule should be routed.
continent: Vec<Value>
An optional vector of strings that represent the continents associated with an IP address. If this is set, the rule only applies to requests from IP addresses in the specified continents.
country: Vec<Value>
An optional vector of strings that represent the countries associated with an IP address. If this is set, the rule only applies to requests from IP addresses in the specified countries.
path: Option<String>
A string that represents the path for which this rule applies. This can be a regular expression if regex
is set to true
.
rank: Option<String>
An integer that represents the rank of this rule. Rules with lower ranks are evaluated before rules with higher ranks.
regex: Option<bool>
A boolean that indicates whether the path
is a regular expression.
region: Vec<Value>
An optional vector of strings that represent the general regions of the world in which the Fastly POP processing the current Compute instance resides. If this is set, the rule only applies to requests from the specified regions.
Implementations§
Source§impl ProxySettingsRoute
impl ProxySettingsRoute
pub fn builder() -> ProxySettingsRoute
Trait Implementations§
Source§impl Clone for ProxySettingsRoute
impl Clone for ProxySettingsRoute
Source§fn clone(&self) -> ProxySettingsRoute
fn clone(&self) -> ProxySettingsRoute
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProxySettingsRoute
impl Debug for ProxySettingsRoute
Source§impl Default for ProxySettingsRoute
impl Default for ProxySettingsRoute
Source§impl<'de> Deserialize<'de> for ProxySettingsRoute
impl<'de> Deserialize<'de> for ProxySettingsRoute
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 From<&ProxySettingsRoute> for ProxySettingsRoute
impl From<&ProxySettingsRoute> for ProxySettingsRoute
Source§fn from(value: &ProxySettingsRoute) -> Self
fn from(value: &ProxySettingsRoute) -> Self
Source§impl From<ProxySettingsRoute> for ProxySettingsRoute
impl From<ProxySettingsRoute> for ProxySettingsRoute
Source§fn from(value: ProxySettingsRoute) -> Self
fn from(value: ProxySettingsRoute) -> Self
Source§impl JsonSchema for ProxySettingsRoute
impl JsonSchema for ProxySettingsRoute
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more