Struct gapi_grpc::google::firestore::admin::v1::Index [−][src]
Cloud Firestore indexes enable simple and complex queries against documents in a database.
Fields
name: String
Output only. A server defined name for this index.
The form of this name for composite indexes will be:
projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}
For single field indexes, this field will be empty.
query_scope: i32
Indexes with a collection query scope specified allow queries against a collection that is the child of a specific document, specified at query time, and that has the same collection id.
Indexes with a collection group query scope specified allow queries against all collections descended from a specific document, specified at query time, and that have the same collection id as this index.
fields: Vec<IndexField>
The fields supported by this index.
For composite indexes, this is always 2 or more fields.
The last field entry is always for the field path __name__
. If, on
creation, __name__
was not specified as the last field, it will be added
automatically with the same direction as that of the last field defined. If
the final field in a composite index is not directional, the __name__
will be ordered ASCENDING (unless explicitly specified).
For single field indexes, this will always be exactly one entry with a field path equal to the field path of the associated field.
state: i32
Output only. The serving state of the index.
Implementations
impl Index
[src][−]
pub fn query_scope(&self) -> QueryScope
[src][−]
Returns the enum value of query_scope
, or the default if the field is set to an invalid enum value.
pub fn set_query_scope(&mut self, value: QueryScope)
[src][−]
Sets query_scope
to the provided enum value.
pub fn state(&self) -> State
[src][−]
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
pub fn set_state(&mut self, value: State)
[src][−]
Sets state
to the provided enum value.
Trait Implementations
impl Clone for Index
[src][+]
impl Debug for Index
[src][+]
impl Default for Index
[src][+]
impl Message for Index
[src][+]
impl PartialEq<Index> for Index
[src][+]
impl StructuralPartialEq for Index
[src]
Auto Trait Implementations
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,