#[non_exhaustive]pub struct Index {
pub project_id: String,
pub index_id: String,
pub kind: String,
pub ancestor: AncestorMode,
pub properties: Vec<IndexedProperty>,
pub state: State,
/* private fields */
}Expand description
Datastore composite index definition.
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.project_id: StringOutput only. Project ID.
index_id: StringOutput only. The resource ID of the index.
kind: StringRequired. The entity kind to which this index applies.
ancestor: AncestorModeRequired. The index’s ancestor mode. Must not be ANCESTOR_MODE_UNSPECIFIED.
properties: Vec<IndexedProperty>Required. An ordered sequence of property names and their index attributes.
Requires:
- A maximum of 100 properties.
state: StateOutput only. The state of the index.
Implementations§
Source§impl Index
impl Index
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_index_id<T: Into<String>>(self, v: T) -> Self
pub fn set_index_id<T: Into<String>>(self, v: T) -> Self
Sets the value of index_id.
Sourcepub fn set_ancestor<T: Into<AncestorMode>>(self, v: T) -> Self
pub fn set_ancestor<T: Into<AncestorMode>>(self, v: T) -> Self
Sets the value of ancestor.
Sourcepub fn set_properties<T, V>(self, v: T) -> Self
pub fn set_properties<T, V>(self, v: T) -> Self
Sets the value of properties.
Trait Implementations§
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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