Struct BackendResponse

Source
pub struct BackendResponse {
Show 42 fields pub address: Option<String>, pub auto_loadbalance: Option<bool>, pub between_bytes_timeout: Option<i32>, pub client_cert: Option<String>, pub comment: Option<String>, pub connect_timeout: Option<i32>, pub first_byte_timeout: Option<i32>, pub healthcheck: Option<String>, pub hostname: Option<String>, pub ipv4: Option<String>, pub ipv6: Option<String>, pub keepalive_time: Option<i32>, pub max_conn: Option<i32>, pub max_tls_version: Option<String>, pub min_tls_version: Option<String>, pub name: Option<String>, pub override_host: Option<String>, pub port: Option<i32>, pub prefer_ipv6: Option<bool>, pub request_condition: Option<String>, pub share_key: Option<String>, pub shield: Option<String>, pub ssl_ca_cert: Option<String>, pub ssl_cert_hostname: Option<String>, pub ssl_check_cert: Option<bool>, pub ssl_ciphers: Option<String>, pub ssl_client_cert: Option<String>, pub ssl_client_key: Option<String>, pub ssl_hostname: Option<String>, pub ssl_sni_hostname: Option<String>, pub tcp_keepalive_enable: Option<bool>, pub tcp_keepalive_interval: Option<i32>, pub tcp_keepalive_probes: Option<i32>, pub tcp_keepalive_time: Option<i32>, pub use_ssl: Option<bool>, pub weight: Option<i32>, pub created_at: Option<String>, pub deleted_at: Option<String>, pub updated_at: Option<String>, pub service_id: Option<Box<String>>, pub version: Option<Box<i32>>, pub locked: Option<bool>,
}

Fields§

§address: Option<String>

A hostname, IPv4, or IPv6 address for the backend. This is the preferred way to specify the location of your backend.

§auto_loadbalance: Option<bool>

Whether or not this backend should be automatically load balanced. If true, all backends with this setting that don’t have a request_condition will be selected based on their weight.

§between_bytes_timeout: Option<i32>

Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using bereq.between_bytes_timeout.

§client_cert: Option<String>

Unused.

§comment: Option<String>

A freeform descriptive note.

§connect_timeout: Option<i32>

Maximum duration in milliseconds to wait for a connection to this backend to be established. If exceeded, the connection is aborted and a synthetic 503 response will be presented instead. May be set at runtime using bereq.connect_timeout.

§first_byte_timeout: Option<i32>

Maximum duration in milliseconds to wait for the server response to begin after a TCP connection is established and the request has been sent. If exceeded, the connection is aborted and a synthetic 503 response will be presented instead. May be set at runtime using bereq.first_byte_timeout.

§healthcheck: Option<String>

The name of the healthcheck to use with this backend.

§hostname: Option<String>

The hostname of the backend. May be used as an alternative to address to set the backend location.

§ipv4: Option<String>

IPv4 address of the backend. May be used as an alternative to address to set the backend location.

§ipv6: Option<String>

IPv6 address of the backend. May be used as an alternative to address to set the backend location.

§keepalive_time: Option<i32>

How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.

§max_conn: Option<i32>

Maximum number of concurrent connections this backend will accept.

§max_tls_version: Option<String>

Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic 503 error response will be generated.

§min_tls_version: Option<String>

Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic 503 error response will be generated.

§name: Option<String>

The name of the backend.

§override_host: Option<String>

If set, will replace the client-supplied HTTP Host header on connections to this backend. Applied after VCL has been processed, so this setting will take precedence over changing bereq.http.Host in VCL.

§port: Option<i32>

Port on which the backend server is listening for connections from Fastly. Setting port to 80 or 443 will also set use_ssl automatically (to false and true respectively), unless explicitly overridden by setting use_ssl in the same request.

§prefer_ipv6: Option<bool>

Prefer IPv6 connections to origins for hostname backends.

§request_condition: Option<String>

Name of a Condition, which if satisfied, will select this backend during a request. If set, will override any auto_loadbalance setting. By default, the first backend added to a service is selected for all requests.

§share_key: Option<String>

Value that when shared across backends will enable those backends to share the same health check.

§shield: Option<String>

Identifier of the POP to use as a shield.

§ssl_ca_cert: Option<String>

CA certificate attached to origin.

§ssl_cert_hostname: Option<String>

Overrides ssl_hostname, but only for cert verification. Does not affect SNI at all.

§ssl_check_cert: Option<bool>

Be strict on checking SSL certs.

§ssl_ciphers: Option<String>

List of OpenSSL ciphers to support for connections to this origin. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic 503 error response will be generated.

§ssl_client_cert: Option<String>

Client certificate attached to origin.

§ssl_client_key: Option<String>

Client key attached to origin.

§ssl_hostname: Option<String>

Use ssl_cert_hostname and ssl_sni_hostname to configure certificate validation.

§ssl_sni_hostname: Option<String>

Overrides ssl_hostname, but only for SNI in the handshake. Does not affect cert validation at all.

§tcp_keepalive_enable: Option<bool>

Whether to enable TCP keepalives for backend connections. Varnish defaults to using keepalives if this is unspecified.

§tcp_keepalive_interval: Option<i32>

Interval in seconds between subsequent keepalive probes.

§tcp_keepalive_probes: Option<i32>

Number of unacknowledged probes to send before considering the connection dead.

§tcp_keepalive_time: Option<i32>

Interval in seconds between the last data packet sent and the first keepalive probe.

§use_ssl: Option<bool>

Whether or not to require TLS for connections to this backend.

§weight: Option<i32>

Weight used to load balance this backend against others. May be any positive integer. If auto_loadbalance is true, the chance of this backend being selected is equal to its own weight over the sum of all weights for backends that have auto_loadbalance set to true.

§created_at: Option<String>

Date and time in ISO 8601 format.

§deleted_at: Option<String>

Date and time in ISO 8601 format.

§updated_at: Option<String>

Date and time in ISO 8601 format.

§service_id: Option<Box<String>>§version: Option<Box<i32>>§locked: Option<bool>

Indicates whether the version of the service this backend is attached to accepts edits.

Implementations§

Trait Implementations§

Source§

impl Clone for BackendResponse

Source§

fn clone(&self) -> BackendResponse

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BackendResponse

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BackendResponse

Source§

fn default() -> BackendResponse

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for BackendResponse

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for BackendResponse

Source§

fn eq(&self, other: &BackendResponse) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for BackendResponse

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for BackendResponse

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,