pub struct ExecuteRequest {
pub request_id: [u8; 16],
pub query_id: QueryId,
pub session_id: Option<SessionId>,
pub database_id: DatabaseId,
pub principal: AuthenticatedIdentity,
pub command: ExecuteCommand,
pub deadline_unix_micros: Option<u64>,
pub result_limits: ResultLimits,
pub resource_group: Option<String>,
pub idempotency_key: Option<String>,
}Expand description
The canonical request every protocol adapter converts into (S1D-001).
Fields§
§request_id: [u8; 16]Unique identifier of this request, chosen by the caller; never reused, so retries with the same id can be deduplicated.
query_id: QueryIdIdentifier of the query execution this request drives.
session_id: Option<SessionId>Session the request runs on, if sessionful.
database_id: DatabaseIdLogical database the request targets.
principal: AuthenticatedIdentityAuthenticated identity the request acts as.
command: ExecuteCommandThe operation to perform.
deadline_unix_micros: Option<u64>Wall-clock deadline in microseconds since the Unix epoch; see the
module-level documentation for why this is not an Instant.
result_limits: ResultLimitsPer-request result bounds; always effective, never unbounded.
resource_group: Option<String>Optional resource group the request is admitted into (spec section 10.5, workload classes and resource governance).
idempotency_key: Option<String>Optional durable idempotency key: present iff the caller may safely replay the request after an ambiguous outcome (spec section 11.7).
Trait Implementations§
Source§impl Clone for ExecuteRequest
impl Clone for ExecuteRequest
Source§fn clone(&self) -> ExecuteRequest
fn clone(&self) -> ExecuteRequest
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 ExecuteRequest
impl Debug for ExecuteRequest
Source§impl<'de> Deserialize<'de> for ExecuteRequest
impl<'de> Deserialize<'de> for ExecuteRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ExecuteRequest
impl PartialEq for ExecuteRequest
Source§impl Serialize for ExecuteRequest
impl Serialize for ExecuteRequest
impl StructuralPartialEq for ExecuteRequest
Auto Trait Implementations§
impl Freeze for ExecuteRequest
impl RefUnwindSafe for ExecuteRequest
impl Send for ExecuteRequest
impl Sync for ExecuteRequest
impl Unpin for ExecuteRequest
impl UnsafeUnpin for ExecuteRequest
impl UnwindSafe for ExecuteRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request