pub struct SubmitQueryParams {
pub request_id: Option<String>,
pub retry: bool,
pub asynchronous: bool,
pub nullable: Option<bool>,
}Expand description
The submit-time query parameters that ride on the POST URL rather than
the body. They are the idempotency contract: a stable SubmitQueryParams::request_id
plus retry=true makes a resubmit safe (the original result is returned
instead of re-running). This struct is a typed carrier for the transport
crate to render into a query string; it is not serialized into the body.
Fields§
§request_id: Option<String>Client-generated UUID; the SQL API idempotency requestId.
retry: boolretry=true marks a safe resubmit of a previously-sent requestId.
asynchronous: boolasync=true returns a handle immediately instead of waiting.
nullable: Option<bool>nullable=false renders SQL NULL as the string "null" instead of JSON
null. Unrelated to rowType[].nullable.
Implementations§
Source§impl SubmitQueryParams
impl SubmitQueryParams
Sourcepub fn to_query_pairs(&self) -> Vec<(&'static str, String)>
pub fn to_query_pairs(&self) -> Vec<(&'static str, String)>
Render the non-default parameters as (key, value) query pairs, in a
stable order, for the transport crate to URL-encode.
Trait Implementations§
Source§impl Clone for SubmitQueryParams
impl Clone for SubmitQueryParams
Source§fn clone(&self) -> SubmitQueryParams
fn clone(&self) -> SubmitQueryParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubmitQueryParams
impl Debug for SubmitQueryParams
Source§impl Default for SubmitQueryParams
impl Default for SubmitQueryParams
Source§fn default() -> SubmitQueryParams
fn default() -> SubmitQueryParams
impl Eq for SubmitQueryParams
Source§impl PartialEq for SubmitQueryParams
impl PartialEq for SubmitQueryParams
impl StructuralPartialEq for SubmitQueryParams
Auto Trait Implementations§
impl Freeze for SubmitQueryParams
impl RefUnwindSafe for SubmitQueryParams
impl Send for SubmitQueryParams
impl Sync for SubmitQueryParams
impl Unpin for SubmitQueryParams
impl UnsafeUnpin for SubmitQueryParams
impl UnwindSafe for SubmitQueryParams
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.