pub struct View<'a, Cn, V> where
    V: SerializedView
{ pub key: Option<QueryKey<<V as View>::Key>>, pub access_policy: AccessPolicy, pub sort: Sort, pub limit: Option<usize>, /* private fields */ }
Expand description

Parameters to query a schema::View.

Fields

key: Option<QueryKey<<V as View>::Key>>

Key filtering criteria.

access_policy: AccessPolicy

The view’s data access policy. The default value is AccessPolicy::UpdateBefore.

sort: Sort

The sort order of the query.

limit: Option<usize>

The maximum number of results to return.

Implementations

Filters for entries in the view with key.

Filters for entries in the view with keys.

Filters for entries in the view with the range keys.

Sets the access policy for queries.

Queries the view in ascending order.

Queries the view in descending order.

Sets the maximum number of results to return.

Executes the query and retrieves the results.

Executes the query and retrieves the results with the associated Documents.

Executes the query and retrieves the results with the associated CollectionDocuments.

Executes a reduce over the results of the query

Executes a reduce over the results of the query

Deletes all of the associated documents that match this view query.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more