#[non_exhaustive]pub struct Matcher {
pub matcher: Option<Matcher>,
/* private fields */
}Available on crate feature
site-search-engine-service only.Expand description
Matcher for the Sitemaps. Currently only supports uris matcher.
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.matcher: Option<Matcher>Matcher for the Sitemaps.
Implementations§
Source§impl Matcher
impl Matcher
pub fn new() -> Self
Sourcepub fn set_matcher<T: Into<Option<Matcher>>>(self, v: T) -> Self
pub fn set_matcher<T: Into<Option<Matcher>>>(self, v: T) -> Self
Sets the value of matcher.
Note that all the setters affecting matcher are mutually
exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::fetch_sitemaps_request::UrisMatcher;
let x = Matcher::new().set_matcher(Some(
google_cloud_discoveryengine_v1::model::fetch_sitemaps_request::matcher::Matcher::UrisMatcher(UrisMatcher::default().into())));Sourcepub fn uris_matcher(&self) -> Option<&Box<UrisMatcher>>
pub fn uris_matcher(&self) -> Option<&Box<UrisMatcher>>
The value of matcher
if it holds a UrisMatcher, None if the field is not set or
holds a different branch.
Sourcepub fn set_uris_matcher<T: Into<Box<UrisMatcher>>>(self, v: T) -> Self
pub fn set_uris_matcher<T: Into<Box<UrisMatcher>>>(self, v: T) -> Self
Sets the value of matcher
to hold a UrisMatcher.
Note that all the setters affecting matcher are
mutually exclusive.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::fetch_sitemaps_request::UrisMatcher;
let x = Matcher::new().set_uris_matcher(UrisMatcher::default()/* use setters */);
assert!(x.uris_matcher().is_some());Trait Implementations§
impl StructuralPartialEq for Matcher
Auto Trait Implementations§
impl Freeze for Matcher
impl RefUnwindSafe for Matcher
impl Send for Matcher
impl Sync for Matcher
impl Unpin for Matcher
impl UnwindSafe for Matcher
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