#[non_exhaustive]pub struct Sitemap {
pub name: String,
pub create_time: Option<Timestamp>,
pub feed: Option<Feed>,
/* private fields */
}Available on crate feature
site-search-engine-service only.Expand description
A sitemap for the SiteSearchEngine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The fully qualified resource name of the sitemap.
projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/sitemaps/*
The sitemap_id suffix is system-generated.
create_time: Option<Timestamp>Output only. The sitemap’s creation time.
feed: Option<Feed>Supported feed sources.
Implementations§
Source§impl Sitemap
impl Sitemap
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Sitemap::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Sitemap::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Sitemap::new().set_or_clear_create_time(None::<Timestamp>);Trait Implementations§
impl StructuralPartialEq for Sitemap
Auto Trait Implementations§
impl Freeze for Sitemap
impl RefUnwindSafe for Sitemap
impl Send for Sitemap
impl Sync for Sitemap
impl Unpin for Sitemap
impl UnwindSafe for Sitemap
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