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
sourceimpl<'de> Deserialize<'de> for Website
impl<'de> Deserialize<'de> for Website
sourcefn 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 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.