pub struct HeaderInput {
pub name: Option<String>,
pub path: Option<String>,
pub value: Option<String>,
}Expand description
HeaderInput
JSON schema
{
"type": "object",
"properties": {
"name": {
"description": "Header name",
"examples": [
"Cache-Control"
],
"type": "string"
},
"path": {
"description": "The request path to add the header to. Wildcards
will cause headers to be applied to all matching paths.",
"examples": [
"/static/*"
],
"type": "string"
},
"value": {
"description": "Header value",
"examples": [
"public, max-age=604800"
],
"type": "string"
}
}
}Fields§
§name: Option<String>Header name
path: Option<String>The request path to add the header to. Wildcards will cause headers to be applied to all matching paths.
value: Option<String>Header value
Trait Implementations§
Source§impl Clone for HeaderInput
impl Clone for HeaderInput
Source§fn clone(&self) -> HeaderInput
fn clone(&self) -> HeaderInput
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 HeaderInput
impl Debug for HeaderInput
Source§impl Default for HeaderInput
impl Default for HeaderInput
Source§impl<'de> Deserialize<'de> for HeaderInput
impl<'de> Deserialize<'de> for HeaderInput
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 HeaderInput
impl RefUnwindSafe for HeaderInput
impl Send for HeaderInput
impl Sync for HeaderInput
impl Unpin for HeaderInput
impl UnsafeUnpin for HeaderInput
impl UnwindSafe for HeaderInput
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