#[non_exhaustive]pub struct IndexConfig {
pub field_path: String,
pub type: IndexType,
pub create_time: Option<Timestamp>,
/* private fields */
}Expand description
Configuration for an indexed field.
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.field_path: StringRequired. The LogEntry field path to index.
Note that some paths are automatically indexed, and other paths are not eligible for indexing. See indexing documentation for details.
For example: jsonPayload.request.status
type: IndexTypeRequired. The type of data in this index.
create_time: Option<Timestamp>Output only. The timestamp when the index was last modified.
This is used to return the timestamp, and will be ignored if supplied during update.
Implementations§
Source§impl IndexConfig
impl IndexConfig
pub fn new() -> Self
Sourcepub fn set_field_path<T: Into<String>>(self, v: T) -> Self
pub fn set_field_path<T: Into<String>>(self, v: T) -> Self
Sets the value of field_path.
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.
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.
Trait Implementations§
Source§impl Clone for IndexConfig
impl Clone for IndexConfig
Source§fn clone(&self) -> IndexConfig
fn clone(&self) -> IndexConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IndexConfig
impl Debug for IndexConfig
Source§impl Default for IndexConfig
impl Default for IndexConfig
Source§fn default() -> IndexConfig
fn default() -> IndexConfig
Returns the “default value” for a type. Read more
Source§impl Message for IndexConfig
impl Message for IndexConfig
Source§impl PartialEq for IndexConfig
impl PartialEq for IndexConfig
impl StructuralPartialEq for IndexConfig
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnwindSafe for IndexConfig
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