#[non_exhaustive]pub enum ContentConfig {
Unspecified,
NoContent,
ContentRequired,
PublicWebsite,
GoogleWorkspace,
UnknownValue(UnknownValue),
}data-store-service only.Expand description
Content config of the data store.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Default value.
NoContent
Only contains documents without any Document.content.
ContentRequired
Only contains documents with Document.content.
PublicWebsite
The data store is used for public website search.
GoogleWorkspace
The data store is used for workspace search. Details of workspace data store are specified in the WorkspaceConfig.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using ContentConfig::value or ContentConfig::name.
Implementations§
Trait Implementations§
Source§impl Clone for ContentConfig
impl Clone for ContentConfig
Source§fn clone(&self) -> ContentConfig
fn clone(&self) -> ContentConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContentConfig
impl Debug for ContentConfig
Source§impl Default for ContentConfig
impl Default for ContentConfig
Source§impl<'de> Deserialize<'de> for ContentConfig
impl<'de> Deserialize<'de> for ContentConfig
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>,
Source§impl Display for ContentConfig
impl Display for ContentConfig
Source§impl From<&str> for ContentConfig
impl From<&str> for ContentConfig
Source§impl From<i32> for ContentConfig
impl From<i32> for ContentConfig
Source§impl PartialEq for ContentConfig
impl PartialEq for ContentConfig
Source§impl Serialize for ContentConfig
impl Serialize for ContentConfig
impl StructuralPartialEq for ContentConfig
Auto Trait Implementations§
impl Freeze for ContentConfig
impl RefUnwindSafe for ContentConfig
impl Send for ContentConfig
impl Sync for ContentConfig
impl Unpin for ContentConfig
impl UnwindSafe for ContentConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.