QueryOptions

Struct QueryOptions 

Source
#[non_exhaustive]
pub struct QueryOptions {
Show 48 fields pub args: Option<Vec<Value>>, pub atr_collection: Option<String>, pub auto_execute: Option<bool>, pub client_context_id: Option<String>, pub compression: Option<Compression>, pub controls: Option<bool>, pub creds: Option<Vec<CredsJson>>, pub durability_level: Option<DurabilityLevel>, pub encoded_plan: Option<String>, pub encoding: Option<Encoding>, pub format: Option<Format>, pub kv_timeout: Option<Duration>, pub max_parallelism: Option<u32>, pub memory_quota: Option<u32>, pub metrics: Option<bool>, pub namespace: Option<String>, pub num_atrs: Option<u32>, pub pipeline_batch: Option<u32>, pub pipeline_cap: Option<u32>, pub prepared: Option<String>, pub preserve_expiry: Option<bool>, pub pretty: Option<bool>, pub profile: Option<ProfileMode>, pub query_context: Option<String>, pub read_only: Option<bool>, pub scan_cap: Option<u32>, pub scan_consistency: Option<ScanConsistency>, pub sparse_scan_vector: Option<SparseScanVectors>, pub full_scan_vector: Option<FullScanVectors>, pub sparse_scan_vectors: Option<HashMap<String, SparseScanVectors>>, pub full_scan_vectors: Option<HashMap<String, FullScanVectors>>, pub scan_wait: Option<Duration>, pub signature: Option<bool>, pub statement: Option<String>, pub timeout: Option<Duration>, pub tx_data: Option<Vec<u8>>, pub tx_id: Option<String>, pub tx_implicit: Option<bool>, pub tx_stmt_num: Option<u32>, pub tx_timeout: Option<Duration>, pub use_cbo: Option<bool>, pub use_fts: Option<bool>, pub use_replica: Option<ReplicaLevel>, pub named_args: Option<HashMap<String, Value>>, pub raw: Option<HashMap<String, Value>>, pub on_behalf_of: Option<OnBehalfOfInfo>, pub endpoint: Option<String>, pub retry_strategy: Option<Arc<dyn RetryStrategy>>,
}

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.
§args: Option<Vec<Value>>§atr_collection: Option<String>§auto_execute: Option<bool>§client_context_id: Option<String>§compression: Option<Compression>§controls: Option<bool>§creds: Option<Vec<CredsJson>>§durability_level: Option<DurabilityLevel>§encoded_plan: Option<String>§encoding: Option<Encoding>§format: Option<Format>§kv_timeout: Option<Duration>§max_parallelism: Option<u32>§memory_quota: Option<u32>§metrics: Option<bool>§namespace: Option<String>§num_atrs: Option<u32>§pipeline_batch: Option<u32>§pipeline_cap: Option<u32>§prepared: Option<String>§preserve_expiry: Option<bool>§pretty: Option<bool>§profile: Option<ProfileMode>§query_context: Option<String>§read_only: Option<bool>§scan_cap: Option<u32>§scan_consistency: Option<ScanConsistency>§sparse_scan_vector: Option<SparseScanVectors>§full_scan_vector: Option<FullScanVectors>§sparse_scan_vectors: Option<HashMap<String, SparseScanVectors>>§full_scan_vectors: Option<HashMap<String, FullScanVectors>>§scan_wait: Option<Duration>§signature: Option<bool>§statement: Option<String>§timeout: Option<Duration>§tx_data: Option<Vec<u8>>§tx_id: Option<String>§tx_implicit: Option<bool>§tx_stmt_num: Option<u32>§tx_timeout: Option<Duration>§use_cbo: Option<bool>§use_fts: Option<bool>§use_replica: Option<ReplicaLevel>§named_args: Option<HashMap<String, Value>>§raw: Option<HashMap<String, Value>>§on_behalf_of: Option<OnBehalfOfInfo>§endpoint: Option<String>§retry_strategy: Option<Arc<dyn RetryStrategy>>

Implementations§

Source§

impl QueryOptions

Source

pub fn new() -> Self

Source

pub fn args(self, args: impl Into<Option<Vec<Value>>>) -> Self

Source

pub fn atr_collection(self, atr_collection: impl Into<Option<String>>) -> Self

Source

pub fn auto_execute(self, auto_execute: impl Into<Option<bool>>) -> Self

Source

pub fn client_context_id( self, client_context_id: impl Into<Option<String>>, ) -> Self

Source

pub fn compression(self, compression: impl Into<Option<Compression>>) -> Self

Source

pub fn controls(self, controls: impl Into<Option<bool>>) -> Self

Source

pub fn creds(self, creds: impl Into<Option<Vec<CredsJson>>>) -> Self

Source

pub fn durability_level( self, durability_level: impl Into<Option<DurabilityLevel>>, ) -> Self

Source

pub fn encoded_plan(self, encoded_plan: impl Into<Option<String>>) -> Self

Source

pub fn encoding(self, encoding: impl Into<Option<Encoding>>) -> Self

Source

pub fn format(self, format: impl Into<Option<Format>>) -> Self

Source

pub fn kv_timeout(self, kv_timeout: impl Into<Option<Duration>>) -> Self

Source

pub fn max_parallelism(self, max_parallelism: impl Into<Option<u32>>) -> Self

Source

pub fn memory_quota(self, memory_quota: impl Into<Option<u32>>) -> Self

Source

pub fn metrics(self, metrics: impl Into<Option<bool>>) -> Self

Source

pub fn namespace(self, namespace: impl Into<Option<String>>) -> Self

Source

pub fn num_atrs(self, num_atrs: impl Into<Option<u32>>) -> Self

Source

pub fn pipeline_batch(self, pipeline_batch: impl Into<Option<u32>>) -> Self

Source

pub fn pipeline_cap(self, pipeline_cap: impl Into<Option<u32>>) -> Self

Source

pub fn prepared(self, prepared: impl Into<Option<String>>) -> Self

Source

pub fn preserve_expiry(self, preserve_expiry: impl Into<Option<bool>>) -> Self

Source

pub fn pretty(self, pretty: impl Into<Option<bool>>) -> Self

Source

pub fn profile(self, profile: impl Into<Option<ProfileMode>>) -> Self

Source

pub fn query_context(self, query_context: impl Into<Option<String>>) -> Self

Source

pub fn read_only(self, read_only: impl Into<Option<bool>>) -> Self

Source

pub fn scan_cap(self, scan_cap: impl Into<Option<u32>>) -> Self

Source

pub fn scan_consistency( self, scan_consistency: impl Into<Option<ScanConsistency>>, ) -> Self

Source

pub fn sparse_scan_vector( self, sparse_scan_vector: impl Into<Option<SparseScanVectors>>, ) -> Self

Source

pub fn full_scan_vector( self, full_scan_vector: impl Into<Option<FullScanVectors>>, ) -> Self

Source

pub fn sparse_scan_vectors( self, sparse_scan_vectors: impl Into<Option<HashMap<String, SparseScanVectors>>>, ) -> Self

Source

pub fn full_scan_vectors( self, full_scan_vectors: impl Into<Option<HashMap<String, FullScanVectors>>>, ) -> Self

Source

pub fn scan_wait(self, scan_wait: impl Into<Option<Duration>>) -> Self

Source

pub fn signature(self, signature: impl Into<Option<bool>>) -> Self

Source

pub fn statement(self, statement: impl Into<Option<String>>) -> Self

Source

pub fn timeout(self, timeout: impl Into<Option<Duration>>) -> Self

Source

pub fn tx_data(self, tx_data: impl Into<Option<Vec<u8>>>) -> Self

Source

pub fn tx_id(self, tx_id: impl Into<Option<String>>) -> Self

Source

pub fn tx_implicit(self, tx_implicit: impl Into<Option<bool>>) -> Self

Source

pub fn tx_stmt_num(self, tx_stmt_num: impl Into<Option<u32>>) -> Self

Source

pub fn tx_timeout(self, tx_timeout: impl Into<Option<Duration>>) -> Self

Source

pub fn use_cbo(self, use_cbo: impl Into<Option<bool>>) -> Self

Source

pub fn use_fts(self, use_fts: impl Into<Option<bool>>) -> Self

Source

pub fn use_replica(self, use_replica: impl Into<Option<ReplicaLevel>>) -> Self

Source

pub fn named_args( self, named_args: impl Into<Option<HashMap<String, Value>>>, ) -> Self

Source

pub fn raw(self, raw: impl Into<Option<HashMap<String, Value>>>) -> Self

Source

pub fn on_behalf_of( self, on_behalf_of: impl Into<Option<OnBehalfOfInfo>>, ) -> Self

Source

pub fn retry_strategy( self, retry_strategy: impl Into<Option<Arc<dyn RetryStrategy>>>, ) -> Self

Source

pub fn endpoint(self, endpoint: impl Into<Option<String>>) -> Self

Trait Implementations§

Source§

impl Clone for QueryOptions

Source§

fn clone(&self) -> QueryOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QueryOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for QueryOptions

Source§

fn default() -> QueryOptions

Returns the “default value” for a type. Read more
Source§

impl From<QueryOptions> for QueryOptions

Source§

fn from(opts: QueryOptions) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,