pub struct CacheRuleConditions {
pub request_cookies: Option<KeyValueConditions>,
pub request_headers: Option<KeyValueConditions>,
pub request_methods: Vec<String>,
pub request_query_params: Option<KeyValueConditions>,
pub response_headers: Option<KeyValueConditions>,
pub response_status: Vec<f64>,
}
Expand description
CacheRuleConditions
JSON schema
{
"type": "object",
"properties": {
"request_cookies": {
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/KeyValueConditions"
}
]
},
"request_headers": {
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/KeyValueConditions"
}
]
},
"request_methods": {
"type": "array",
"items": {
"type": "string"
}
},
"request_query_params": {
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/KeyValueConditions"
}
]
},
"response_headers": {
"type": "object",
"allOf": [
{
"$ref": "#/components/schemas/KeyValueConditions"
}
]
},
"response_status": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
Fields§
§request_headers: Option<KeyValueConditions>
§request_methods: Vec<String>
§request_query_params: Option<KeyValueConditions>
§response_headers: Option<KeyValueConditions>
§response_status: Vec<f64>
Implementations§
Source§impl CacheRuleConditions
impl CacheRuleConditions
pub fn builder() -> CacheRuleConditions
Trait Implementations§
Source§impl Clone for CacheRuleConditions
impl Clone for CacheRuleConditions
Source§fn clone(&self) -> CacheRuleConditions
fn clone(&self) -> CacheRuleConditions
Returns a duplicate of the value. Read more
1.0.0 · 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 CacheRuleConditions
impl Debug for CacheRuleConditions
Source§impl Default for CacheRuleConditions
impl Default for CacheRuleConditions
Source§impl<'de> Deserialize<'de> for CacheRuleConditions
impl<'de> Deserialize<'de> for CacheRuleConditions
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
Source§impl From<&CacheRuleConditions> for CacheRuleConditions
impl From<&CacheRuleConditions> for CacheRuleConditions
Source§fn from(value: &CacheRuleConditions) -> Self
fn from(value: &CacheRuleConditions) -> Self
Converts to this type from the input type.
Source§impl From<CacheRuleConditions> for CacheRuleConditions
impl From<CacheRuleConditions> for CacheRuleConditions
Source§fn from(value: CacheRuleConditions) -> Self
fn from(value: CacheRuleConditions) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for CacheRuleConditions
impl JsonSchema for CacheRuleConditions
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Serialize for CacheRuleConditions
impl Serialize for CacheRuleConditions
Source§impl TryFrom<CacheRuleConditions> for CacheRuleConditions
impl TryFrom<CacheRuleConditions> for CacheRuleConditions
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CacheRuleConditions) -> Result<Self, ConversionError>
fn try_from(value: CacheRuleConditions) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CacheRuleConditions
impl RefUnwindSafe for CacheRuleConditions
impl Send for CacheRuleConditions
impl Sync for CacheRuleConditions
impl Unpin for CacheRuleConditions
impl UnwindSafe for CacheRuleConditions
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