pub struct ResponseHeadersPolicyConfig {
pub comment: String,
pub name: String,
pub cors_config: Option<ResponseHeadersPolicyCorsConfig>,
pub security_headers_config: Option<ResponseHeadersPolicySecurityHeadersConfig>,
pub server_timing_headers_config: Option<ServerTimingHeadersConfig>,
pub custom_headers_config: Vec<ResponseHeaderOverride>,
pub remove_headers_config: Vec<String>,
}Expand description
Response headers policy configuration.
Fields§
§comment: StringComment.
name: StringPolicy name.
cors_config: Option<ResponseHeadersPolicyCorsConfig>CORS configuration.
security_headers_config: Option<ResponseHeadersPolicySecurityHeadersConfig>Security header configuration.
server_timing_headers_config: Option<ServerTimingHeadersConfig>Server-Timing.
custom_headers_config: Vec<ResponseHeaderOverride>Custom user-supplied headers.
remove_headers_config: Vec<String>Headers to strip from the upstream response.
Trait Implementations§
Source§impl Clone for ResponseHeadersPolicyConfig
impl Clone for ResponseHeadersPolicyConfig
Source§fn clone(&self) -> ResponseHeadersPolicyConfig
fn clone(&self) -> ResponseHeadersPolicyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseHeadersPolicyConfig
impl Debug for ResponseHeadersPolicyConfig
Source§impl Default for ResponseHeadersPolicyConfig
impl Default for ResponseHeadersPolicyConfig
Source§fn default() -> ResponseHeadersPolicyConfig
fn default() -> ResponseHeadersPolicyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResponseHeadersPolicyConfig
impl<'de> Deserialize<'de> for ResponseHeadersPolicyConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResponseHeadersPolicyConfig
impl RefUnwindSafe for ResponseHeadersPolicyConfig
impl Send for ResponseHeadersPolicyConfig
impl Sync for ResponseHeadersPolicyConfig
impl Unpin for ResponseHeadersPolicyConfig
impl UnsafeUnpin for ResponseHeadersPolicyConfig
impl UnwindSafe for ResponseHeadersPolicyConfig
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
Mutably borrows from an owned value. Read more