Struct google_api_proto::google::appengine::v1beta::StaticFilesHandler
source · pub struct StaticFilesHandler {
pub path: String,
pub upload_path_regex: String,
pub http_headers: BTreeMap<String, String>,
pub mime_type: String,
pub expiration: Option<Duration>,
pub require_matching_file: bool,
pub application_readable: bool,
}
Expand description
Files served directly to the user for a given URL, such as images, CSS stylesheets, or JavaScript source files. Static file handlers describe which files in the application directory are static files, and which URLs serve them.
Fields§
§path: String
Path to the static files matched by the URL pattern, from the application root directory. The path can refer to text matched in groupings in the URL pattern.
upload_path_regex: String
Regular expression that matches the file paths for all files that should be referenced by this handler.
http_headers: BTreeMap<String, String>
HTTP headers to use for all responses from these URLs.
mime_type: String
MIME type used to serve all files served by this handler.
Defaults to file-specific MIME types, which are derived from each file’s filename extension.
expiration: Option<Duration>
Time a static file served by this handler should be cached by web proxies and browsers.
require_matching_file: bool
Whether this handler should match the request if the file referenced by the handler does not exist.
application_readable: bool
Whether files should also be uploaded as code data. By default, files declared in static file handlers are uploaded as static data and are only served to end users; they cannot be read by the application. If enabled, uploads are charged against both your code and static data storage resource quotas.
Trait Implementations§
source§impl Clone for StaticFilesHandler
impl Clone for StaticFilesHandler
source§fn clone(&self) -> StaticFilesHandler
fn clone(&self) -> StaticFilesHandler
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StaticFilesHandler
impl Debug for StaticFilesHandler
source§impl Default for StaticFilesHandler
impl Default for StaticFilesHandler
source§impl Message for StaticFilesHandler
impl Message for StaticFilesHandler
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for StaticFilesHandler
impl PartialEq for StaticFilesHandler
source§fn eq(&self, other: &StaticFilesHandler) -> bool
fn eq(&self, other: &StaticFilesHandler) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StaticFilesHandler
Auto Trait Implementations§
impl Freeze for StaticFilesHandler
impl RefUnwindSafe for StaticFilesHandler
impl Send for StaticFilesHandler
impl Sync for StaticFilesHandler
impl Unpin for StaticFilesHandler
impl UnwindSafe for StaticFilesHandler
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request