#[non_exhaustive]pub struct IndexConfig {
pub indexes: Vec<Index>,
pub uses_ancestor_config: bool,
pub ancestor_field: String,
pub reverting: bool,
/* private fields */
}Expand description
The index configuration for this field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.indexes: Vec<Index>The indexes supported for this field.
uses_ancestor_config: boolOutput only. When true, the Field’s index configuration is set from the
configuration specified by the ancestor_field.
When false, the Field’s index configuration is defined explicitly.
ancestor_field: StringOutput only. Specifies the resource name of the Field from which this
field’s index configuration is set (when uses_ancestor_config is true),
or from which it would be set if this field had no index configuration
(when uses_ancestor_config is false).
reverting: boolOutput only
When true, the Field’s index configuration is in the process of being
reverted. Once complete, the index config will transition to the same
state as the field specified by ancestor_field, at which point
uses_ancestor_config will be true and reverting will be false.
Implementations§
Source§impl IndexConfig
impl IndexConfig
pub fn new() -> Self
Sourcepub fn set_indexes<T, V>(self, v: T) -> Self
pub fn set_indexes<T, V>(self, v: T) -> Self
Sourcepub fn set_uses_ancestor_config<T: Into<bool>>(self, v: T) -> Self
pub fn set_uses_ancestor_config<T: Into<bool>>(self, v: T) -> Self
Sets the value of uses_ancestor_config.
§Example
let x = IndexConfig::new().set_uses_ancestor_config(true);Sourcepub fn set_ancestor_field<T: Into<String>>(self, v: T) -> Self
pub fn set_ancestor_field<T: Into<String>>(self, v: T) -> Self
Sets the value of ancestor_field.
§Example
let x = IndexConfig::new().set_ancestor_field("example");Trait Implementations§
Source§impl Clone for IndexConfig
impl Clone for IndexConfig
Source§fn clone(&self) -> IndexConfig
fn clone(&self) -> IndexConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more