Struct google_storage1::api::BucketWebsite
source · pub struct BucketWebsite {
pub main_page_suffix: Option<String>,
pub not_found_page: Option<String>,
}
Expand description
The bucket’s website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
This type is not used in any activity, and only used as part of another schema.
Fields§
§main_page_suffix: Option<String>
If the requested object path is missing, the service will ensure the path has a trailing ‘/’, append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
not_found_page: Option<String>
If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
Trait Implementations§
source§impl Clone for BucketWebsite
impl Clone for BucketWebsite
source§fn clone(&self) -> BucketWebsite
fn clone(&self) -> BucketWebsite
Returns a copy 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 BucketWebsite
impl Debug for BucketWebsite
source§impl Default for BucketWebsite
impl Default for BucketWebsite
source§fn default() -> BucketWebsite
fn default() -> BucketWebsite
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BucketWebsite
impl<'de> Deserialize<'de> for BucketWebsite
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 Serialize for BucketWebsite
impl Serialize for BucketWebsite
impl NestedType for BucketWebsite
impl Part for BucketWebsite
Auto Trait Implementations§
impl RefUnwindSafe for BucketWebsite
impl Send for BucketWebsite
impl Sync for BucketWebsite
impl Unpin for BucketWebsite
impl UnwindSafe for BucketWebsite
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