#[non_exhaustive]pub struct QuerySessionContext {
pub query_id: Option<String>,
pub query_start_time: Option<DateTime>,
pub cluster_id: Option<String>,
pub query_authorization_id: Option<String>,
pub additional_context: Option<HashMap<String, String>>,
}Expand description
A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query_id: Option<String>A unique identifier generated by the query engine for the query.
query_start_time: Option<DateTime>A timestamp provided by the query engine for when the query started.
cluster_id: Option<String>An identifier string for the consumer cluster.
A cryptographically generated query identifier generated by Glue or Lake Formation.
additional_context: Option<HashMap<String, String>>An opaque string-string map passed by the query engine.
Implementations§
Source§impl QuerySessionContext
impl QuerySessionContext
Sourcepub fn query_id(&self) -> Option<&str>
pub fn query_id(&self) -> Option<&str>
A unique identifier generated by the query engine for the query.
Sourcepub fn query_start_time(&self) -> Option<&DateTime>
pub fn query_start_time(&self) -> Option<&DateTime>
A timestamp provided by the query engine for when the query started.
Sourcepub fn cluster_id(&self) -> Option<&str>
pub fn cluster_id(&self) -> Option<&str>
An identifier string for the consumer cluster.
A cryptographically generated query identifier generated by Glue or Lake Formation.
Source§impl QuerySessionContext
impl QuerySessionContext
Sourcepub fn builder() -> QuerySessionContextBuilder
pub fn builder() -> QuerySessionContextBuilder
Creates a new builder-style object to manufacture QuerySessionContext.
Trait Implementations§
Source§impl Clone for QuerySessionContext
impl Clone for QuerySessionContext
Source§fn clone(&self) -> QuerySessionContext
fn clone(&self) -> QuerySessionContext
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 QuerySessionContext
impl Debug for QuerySessionContext
Source§impl PartialEq for QuerySessionContext
impl PartialEq for QuerySessionContext
Source§fn eq(&self, other: &QuerySessionContext) -> bool
fn eq(&self, other: &QuerySessionContext) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuerySessionContext
Auto Trait Implementations§
impl Freeze for QuerySessionContext
impl RefUnwindSafe for QuerySessionContext
impl Send for QuerySessionContext
impl Sync for QuerySessionContext
impl Unpin for QuerySessionContext
impl UnsafeUnpin for QuerySessionContext
impl UnwindSafe for QuerySessionContext
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more