#[non_exhaustive]pub struct AnalyticsOptions {Show 22 fields
pub args: Option<Vec<Value>>,
pub client_context_id: Option<String>,
pub format: Option<Format>,
pub pretty: Option<bool>,
pub query_context: Option<String>,
pub read_only: Option<bool>,
pub scan_consistency: Option<ScanConsistency>,
pub scan_wait: Option<Duration>,
pub statement: Option<String>,
pub timeout: Option<Duration>,
pub named_args: Option<HashMap<String, Value>>,
pub raw: Option<HashMap<String, Value>>,
pub plan_format: Option<PlanFormat>,
pub logical_plan: Option<bool>,
pub optimized_logical_plan: Option<bool>,
pub expression_tree: Option<bool>,
pub rewritten_expression_tree: Option<bool>,
pub job: Option<bool>,
pub max_warnings: Option<i32>,
pub on_behalf_of: Option<OnBehalfOfInfo>,
pub endpoint: Option<String>,
pub retry_strategy: 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>>§client_context_id: Option<String>§format: Option<Format>§pretty: Option<bool>§query_context: Option<String>§read_only: Option<bool>§scan_consistency: Option<ScanConsistency>§scan_wait: Option<Duration>§statement: Option<String>§timeout: Option<Duration>§named_args: Option<HashMap<String, Value>>§raw: Option<HashMap<String, Value>>§plan_format: Option<PlanFormat>§logical_plan: Option<bool>§optimized_logical_plan: Option<bool>§expression_tree: Option<bool>§rewritten_expression_tree: Option<bool>§job: Option<bool>§max_warnings: Option<i32>§on_behalf_of: Option<OnBehalfOfInfo>§endpoint: Option<String>§retry_strategy: Arc<dyn RetryStrategy>Implementations§
Source§impl AnalyticsOptions
impl AnalyticsOptions
pub fn new() -> Self
pub fn args(self, args: impl Into<Option<Vec<Value>>>) -> Self
pub fn client_context_id( self, client_context_id: impl Into<Option<String>>, ) -> Self
pub fn pretty(self, pretty: impl Into<Option<bool>>) -> 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_consistency( self, scan_consistency: impl Into<Option<ScanConsistency>>, ) -> Self
pub fn scan_wait(self, scan_wait: impl Into<Option<Duration>>) -> Self
pub fn statement(self, statement: impl Into<Option<String>>) -> Self
pub fn timeout(self, timeout: impl Into<Option<Duration>>) -> 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 plan_format(self, plan_format: impl Into<Option<PlanFormat>>) -> Self
pub fn logical_plan(self, logical_plan: impl Into<Option<bool>>) -> Self
pub fn optimized_logical_plan( self, optimized_logical_plan: impl Into<Option<bool>>, ) -> Self
pub fn expression_tree(self, expression_tree: impl Into<Option<bool>>) -> Self
pub fn rewritten_expression_tree( self, rewritten_expression_tree: impl Into<Option<bool>>, ) -> Self
pub fn job(self, job: impl Into<Option<bool>>) -> Self
pub fn max_warnings(self, max_warnings: impl Into<Option<i32>>) -> Self
pub fn on_behalf_of( self, on_behalf_of: impl Into<Option<OnBehalfOfInfo>>, ) -> Self
pub fn retry_strategy(self, retry_strategy: Arc<dyn RetryStrategy>) -> Self
pub fn endpoint(self, endpoint: impl Into<Option<String>>) -> Self
Trait Implementations§
Source§impl Clone for AnalyticsOptions
impl Clone for AnalyticsOptions
Source§fn clone(&self) -> AnalyticsOptions
fn clone(&self) -> AnalyticsOptions
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 AnalyticsOptions
impl Debug for AnalyticsOptions
Source§impl Default for AnalyticsOptions
impl Default for AnalyticsOptions
Source§impl From<AnalyticsOptions> for QueryOptions
impl From<AnalyticsOptions> for QueryOptions
Source§fn from(opts: AnalyticsOptions) -> Self
fn from(opts: AnalyticsOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnalyticsOptions
impl !RefUnwindSafe for AnalyticsOptions
impl Send for AnalyticsOptions
impl Sync for AnalyticsOptions
impl Unpin for AnalyticsOptions
impl UnsafeUnpin for AnalyticsOptions
impl !UnwindSafe for AnalyticsOptions
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