pub struct Reindex {
pub index_name: ValueOrGlob<String>,
}Expand description
Selector for REINDEX statements, scoped to an index name.
§String syntax examples
Reindex– any index.Reindex(idx_email)– onlyidx_email.
Fields§
§index_name: ValueOrGlob<String>The name of the index being reindexed, or * for any.
Implementations§
Source§impl Reindex
impl Reindex
Sourcepub fn new(index_name: impl Into<ValueOrGlob<String>>) -> Self
pub fn new(index_name: impl Into<ValueOrGlob<String>>) -> Self
Creates a new Reindex with the provided field values.
Each argument accepts any type that implements Into<ValueOrGlob<T>>, so callers can pass a raw value, a ValueOrGlob, or an Option<T>.
Sourcepub fn with_index_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
pub fn with_index_name(self, value: impl Into<ValueOrGlob<String>>) -> Self
Sets Reindex::index_name and returns self for method chaining.
The name of the index being reindexed, or * for any.
Sourcepub const fn is_all_glob(&self) -> bool
pub const fn is_all_glob(&self) -> bool
Sourcepub const fn is_all_value(&self) -> bool
pub const fn is_all_value(&self) -> bool
Sourcepub const fn is_any_glob(&self) -> bool
pub const fn is_any_glob(&self) -> bool
Sourcepub const fn is_any_value(&self) -> bool
pub const fn is_any_value(&self) -> bool
Sourcepub const fn specificity(&self) -> usize
pub const fn specificity(&self) -> usize
Trait Implementations§
Source§impl Default for Reindex
Defaults to Reindex::empty, producing a selector where every field is a glob.
impl Default for Reindex
Defaults to Reindex::empty, producing a selector where every field is a glob.
Source§impl Display for Reindex
Formats this Reindex using the CLI selector syntax. When all fields are globs, renders the bare identifier Reindex; otherwise renders the identifier with parenthesized dot-separated fields.
impl Display for Reindex
Formats this Reindex using the CLI selector syntax. When all fields are globs, renders the bare identifier Reindex; otherwise renders the identifier with parenthesized dot-separated fields.
Source§impl From<Reindex> for AccessControlSelector
Converts a Reindex into its corresponding AccessControlSelector variant.
impl From<Reindex> for AccessControlSelector
Converts a Reindex into its corresponding AccessControlSelector variant.
Source§impl FromStr for Reindex
Parses a selector string into a Reindex. Accepts the syntax Reindex or Reindex(field1.field2).
impl FromStr for Reindex
Parses a selector string into a Reindex. Accepts the syntax Reindex or Reindex(field1.field2).