Struct google_appengine1_beta5::UrlMap
source · pub struct UrlMap {
pub security_level: Option<String>,
pub auth_fail_action: Option<String>,
pub url_regex: Option<String>,
pub script: Option<ScriptHandler>,
pub static_files: Option<StaticFilesHandler>,
pub api_endpoint: Option<ApiEndpointHandler>,
pub login: Option<String>,
pub redirect_http_response_code: Option<String>,
}
Expand description
URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code, or by serving static files uploaded with the version, such as images, CSS, or JavaScript.
This type is not used in any activity, and only used as part of another schema.
Fields§
§security_level: Option<String>
Security (HTTPS) enforcement for this URL.
auth_fail_action: Option<String>
Action to take when users access resources that require authentication. Defaults to redirect.
url_regex: Option<String>
A URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
script: Option<ScriptHandler>
Executes a script to handle the request that matches this URL pattern.
static_files: Option<StaticFilesHandler>
Returns the contents of a file, such as an image, as the response.
api_endpoint: Option<ApiEndpointHandler>
Uses API Endpoints to handle requests.
login: Option<String>
Level of login required to access this resource.
redirect_http_response_code: Option<String>
30x code to use when performing redirects for the secure field. Defaults to 302.
Trait Implementations§
source§impl<'de> Deserialize<'de> for UrlMap
impl<'de> Deserialize<'de> for UrlMap
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>,
impl Part for UrlMap
Auto Trait Implementations§
impl Freeze for UrlMap
impl RefUnwindSafe for UrlMap
impl Send for UrlMap
impl Sync for UrlMap
impl Unpin for UrlMap
impl UnwindSafe for UrlMap
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more