#[non_exhaustive]pub struct QueryOptions { /* private fields */ }Implementations§
Source§impl QueryOptions
impl QueryOptions
pub fn new() -> Self
pub fn args(self, args: impl Into<Option<Vec<Value>>>) -> Self
pub fn atr_collection(self, atr_collection: impl Into<Option<String>>) -> Self
pub fn auto_execute(self, auto_execute: impl Into<Option<bool>>) -> Self
pub fn client_context_id( self, client_context_id: impl Into<Option<String>>, ) -> Self
pub fn compression(self, compression: impl Into<Option<Compression>>) -> Self
pub fn controls(self, controls: impl Into<Option<bool>>) -> Self
pub fn creds(self, creds: impl Into<Option<Vec<CredsJson>>>) -> Self
pub fn durability_level( self, durability_level: impl Into<Option<DurabilityLevel>>, ) -> Self
pub fn encoded_plan(self, encoded_plan: impl Into<Option<String>>) -> Self
pub fn encoding(self, encoding: impl Into<Option<Encoding>>) -> Self
pub fn format(self, format: impl Into<Option<Format>>) -> Self
pub fn kv_timeout(self, kv_timeout: impl Into<Option<Duration>>) -> Self
pub fn max_parallelism(self, max_parallelism: impl Into<Option<u32>>) -> Self
pub fn memory_quota(self, memory_quota: impl Into<Option<u32>>) -> Self
pub fn metrics(self, metrics: impl Into<Option<bool>>) -> Self
pub fn namespace(self, namespace: impl Into<Option<String>>) -> Self
pub fn num_atrs(self, num_atrs: impl Into<Option<u32>>) -> Self
pub fn pipeline_batch(self, pipeline_batch: impl Into<Option<u32>>) -> Self
pub fn pipeline_cap(self, pipeline_cap: impl Into<Option<u32>>) -> Self
pub fn prepared(self, prepared: impl Into<Option<String>>) -> Self
pub fn preserve_expiry(self, preserve_expiry: impl Into<Option<bool>>) -> Self
pub fn pretty(self, pretty: impl Into<Option<bool>>) -> Self
pub fn profile(self, profile: impl Into<Option<ProfileMode>>) -> Self
pub fn query_context(self, query_context: impl Into<Option<String>>) -> Self
pub fn read_only(self, read_only: impl Into<Option<bool>>) -> Self
pub fn scan_cap(self, scan_cap: impl Into<Option<u32>>) -> Self
pub fn scan_consistency( self, scan_consistency: impl Into<Option<ScanConsistency>>, ) -> Self
pub fn sparse_scan_vector( self, sparse_scan_vector: impl Into<Option<SparseScanVectors>>, ) -> Self
pub fn full_scan_vector( self, full_scan_vector: impl Into<Option<FullScanVectors>>, ) -> Self
pub fn sparse_scan_vectors( self, sparse_scan_vectors: impl Into<Option<HashMap<String, SparseScanVectors>>>, ) -> Self
pub fn full_scan_vectors( self, full_scan_vectors: impl Into<Option<HashMap<String, FullScanVectors>>>, ) -> Self
pub fn scan_wait(self, scan_wait: impl Into<Option<Duration>>) -> Self
pub fn signature(self, signature: impl Into<Option<bool>>) -> Self
pub fn statement(self, statement: impl Into<Option<String>>) -> Self
pub fn timeout(self, timeout: impl Into<Option<Duration>>) -> Self
pub fn tx_data(self, tx_data: impl Into<Option<Vec<u8>>>) -> Self
pub fn tx_id(self, tx_id: impl Into<Option<String>>) -> Self
pub fn tx_implicit(self, tx_implicit: impl Into<Option<bool>>) -> Self
pub fn tx_stmt_num(self, tx_stmt_num: impl Into<Option<u32>>) -> Self
pub fn tx_timeout(self, tx_timeout: impl Into<Option<Duration>>) -> Self
pub fn use_cbo(self, use_cbo: impl Into<Option<bool>>) -> Self
pub fn use_fts(self, use_fts: impl Into<Option<bool>>) -> Self
pub fn use_replica(self, use_replica: impl Into<Option<ReplicaLevel>>) -> Self
pub fn named_args( self, named_args: impl Into<Option<HashMap<String, Value>>>, ) -> Self
pub fn raw(self, raw: impl Into<Option<HashMap<String, Value>>>) -> Self
pub fn on_behalf_of( self, on_behalf_of: impl Into<Option<OnBehalfOfInfo>>, ) -> Self
Trait Implementations§
Source§impl Clone for QueryOptions
impl Clone for QueryOptions
Source§fn clone(&self) -> QueryOptions
fn clone(&self) -> QueryOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueryOptions
impl Debug for QueryOptions
Source§impl Default for QueryOptions
impl Default for QueryOptions
Source§fn default() -> QueryOptions
fn default() -> QueryOptions
Returns the “default value” for a type. Read more
Source§impl From<QueryOptions> for QueryOptions
impl From<QueryOptions> for QueryOptions
Source§fn from(opts: QueryOptions) -> Self
fn from(opts: QueryOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryOptions
impl RefUnwindSafe for QueryOptions
impl Send for QueryOptions
impl Sync for QueryOptions
impl Unpin for QueryOptions
impl UnsafeUnpin for QueryOptions
impl UnwindSafe for QueryOptions
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