pub struct BigQuerySessionStoreAdapter { /* private fields */ }Implementations§
Source§impl BigQuerySessionStoreAdapter
impl BigQuerySessionStoreAdapter
pub const DEFAULT_API_BASE_URL: &'static str = "https://bigquery.googleapis.com/bigquery/v2"
pub fn new( _legacy_bq_binary: impl AsRef<Path>, dataset: impl Into<String>, table: impl Into<String>, ) -> Self
pub fn new_native(dataset: impl Into<String>, table: impl Into<String>) -> Self
pub fn with_project_id(self, project_id: impl Into<String>) -> Self
pub fn with_api_base_url(self, api_base_url: impl Into<String>) -> Self
pub fn with_access_token(self, access_token: impl Into<String>) -> Self
pub fn with_http_timeout(self, timeout: Duration) -> Self
pub fn with_bearer_token(self, access_token: impl Into<String>) -> Self
pub fn table_ref(&self) -> String
pub async fn stream_insert_rows( &self, rows: &[SessionPersistenceRow], ) -> Result<(), BigQuerySessionStoreError>
pub async fn read_rows( &self, ) -> Result<Vec<SessionPersistenceRow>, BigQuerySessionStoreError>
pub async fn read_latest_rows( &self, ) -> Result<Vec<SessionPersistenceRow>, BigQuerySessionStoreError>
pub async fn read_live_rows( &self, ) -> Result<Vec<SessionPersistenceRow>, BigQuerySessionStoreError>
pub async fn gc_superseded_rows(&self) -> Result<u64, BigQuerySessionStoreError>
pub async fn truncate_sessions(&self) -> Result<(), BigQuerySessionStoreError>
Trait Implementations§
Source§impl Clone for BigQuerySessionStoreAdapter
impl Clone for BigQuerySessionStoreAdapter
Source§fn clone(&self) -> BigQuerySessionStoreAdapter
fn clone(&self) -> BigQuerySessionStoreAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BigQuerySessionStoreAdapter
impl !RefUnwindSafe for BigQuerySessionStoreAdapter
impl Send for BigQuerySessionStoreAdapter
impl Sync for BigQuerySessionStoreAdapter
impl Unpin for BigQuerySessionStoreAdapter
impl UnsafeUnpin for BigQuerySessionStoreAdapter
impl !UnwindSafe for BigQuerySessionStoreAdapter
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
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>
Converts
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>
Converts
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