Struct persist_es::QueryContext[][src]

pub struct QueryContext {
    pub view_instance_id: String,
    pub version: i64,
}
Expand description

A data structure maintaining context when updating views.

Fields

view_instance_id: String

Unique identifier of the view instance that is being modified.

version: i64

The current version of the view instance, used for optimistic locking.

Implementations

Convenience function to create a new QueryContext.

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.

Performs the conversion.

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.