Struct google_cloud_storage::http::buckets::Website
source · Expand description
Properties of a bucket related to accessing the contents as a static website. For more on hosting a static website via GCS, see https://cloud.google.com/storage/docs/hosting-static-website.
Fields§
§main_page_suffix: StringIf 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: StringIf 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
[https://tools.ietf.org/html/rfc7231#section-6.5.4\][404 Not Found]
result.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Website
impl<'de> Deserialize<'de> for Website
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 PartialEq<Website> for Website
impl PartialEq<Website> for Website
impl Eq for Website
impl StructuralEq for Website
impl StructuralPartialEq for Website
Auto Trait Implementations§
impl RefUnwindSafe for Website
impl Send for Website
impl Sync for Website
impl Unpin for Website
impl UnwindSafe for Website
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.