Struct google_firebasehosting1_beta1::api::Header
source · pub struct Header {
pub glob: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub regex: Option<String>,
}
Expand description
A Header
specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
This type is not used in any activity, and only used as part of another schema.
Fields§
§glob: Option<String>
The user-supplied glob to match against the request URL path.
headers: Option<HashMap<String, String>>
Required. The additional headers to add to the response.
regex: Option<String>
The user-supplied RE2 regular expression to match against the request URL path.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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
impl Part for Header
Auto Trait Implementations§
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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