pub struct ProxySettingsBackend {
pub address: Option<String>,
pub ca_certificate: Option<String>,
pub check_certificate: Option<String>,
pub default: Option<bool>,
pub enable_ssl: Option<bool>,
pub name: Option<String>,
pub override_host: Option<String>,
pub sni_hostname: Option<String>,
}
Expand description
A ProxySettings backend entity
JSON schema
{
"description": "A ProxySettings backend entity",
"type": "object",
"properties": {
"address": {
"description": "A string that represents the address of the backend.",
"type": "string"
},
"ca_certificate": {
"description": "An optional string that, if present, represents the CA certificate for this backend. Set the CA certificate to use when checking the validity of the backend. Setting this will enable SSL for the connection as a side effect.",
"type": "string"
},
"check_certificate": {
"description": "An optional string that, if present, represents the hostname that the server certificate should declare, and turn on validation during backend connections. You should enable this if you are using SSL/ TLS, and setting this will enable SSL for the connection as a side effect.",
"type": "string"
},
"default": {
"description": "An optional boolean that, if present and set to `true`, indicates that this backend is the default backend.",
"type": "boolean"
},
"enable_ssl": {
"description": "A boolean that indicates that SSL should be enabled for this backend.",
"type": "boolean"
},
"name": {
"description": "A string that represents the name of the backend.",
"type": "string"
},
"override_host": {
"description": "An optional string that, if present, represents the host that should be overridden for this backend. This will force the value of the \"Host\" header to the given string when sending out the origin request. If this is not set and no header already exists, the \"Host\" header will default to this backend's address.",
"type": "string"
},
"sni_hostname": {
"description": "An optional string that, if present, represents the SNI hostname for this backend. Setting this will enable SSL for the connection as a side effect.",
"type": "string"
}
}
}
Fields§
§address: Option<String>
A string that represents the address of the backend.
ca_certificate: Option<String>
An optional string that, if present, represents the CA certificate for this backend. Set the CA certificate to use when checking the validity of the backend. Setting this will enable SSL for the connection as a side effect.
check_certificate: Option<String>
An optional string that, if present, represents the hostname that the server certificate should declare, and turn on validation during backend connections. You should enable this if you are using SSL/ TLS, and setting this will enable SSL for the connection as a side effect.
default: Option<bool>
An optional boolean that, if present and set to true
, indicates that this backend is the default backend.
enable_ssl: Option<bool>
A boolean that indicates that SSL should be enabled for this backend.
name: Option<String>
A string that represents the name of the backend.
override_host: Option<String>
An optional string that, if present, represents the host that should be overridden for this backend. This will force the value of the “Host” header to the given string when sending out the origin request. If this is not set and no header already exists, the “Host” header will default to this backend’s address.
sni_hostname: Option<String>
An optional string that, if present, represents the SNI hostname for this backend. Setting this will enable SSL for the connection as a side effect.
Implementations§
Source§impl ProxySettingsBackend
impl ProxySettingsBackend
pub fn builder() -> ProxySettingsBackend
Trait Implementations§
Source§impl Clone for ProxySettingsBackend
impl Clone for ProxySettingsBackend
Source§fn clone(&self) -> ProxySettingsBackend
fn clone(&self) -> ProxySettingsBackend
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ProxySettingsBackend
impl Debug for ProxySettingsBackend
Source§impl Default for ProxySettingsBackend
impl Default for ProxySettingsBackend
Source§impl<'de> Deserialize<'de> for ProxySettingsBackend
impl<'de> Deserialize<'de> for ProxySettingsBackend
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<&ProxySettingsBackend> for ProxySettingsBackend
impl From<&ProxySettingsBackend> for ProxySettingsBackend
Source§fn from(value: &ProxySettingsBackend) -> Self
fn from(value: &ProxySettingsBackend) -> Self
Source§impl From<ProxySettingsBackend> for ProxySettingsBackend
impl From<ProxySettingsBackend> for ProxySettingsBackend
Source§fn from(value: ProxySettingsBackend) -> Self
fn from(value: ProxySettingsBackend) -> Self
Source§impl JsonSchema for ProxySettingsBackend
impl JsonSchema for ProxySettingsBackend
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more