pub struct SnowflakeApiBuilder {
pub auth: AuthArgs,
/* private fields */
}Fields§
§auth: AuthArgsImplementations§
Source§impl SnowflakeApiBuilder
impl SnowflakeApiBuilder
pub fn new(auth: AuthArgs) -> Self
pub fn with_client(self, client: ClientWithMiddleware) -> Self
Sourcepub fn with_keep_alive(self, enabled: bool) -> Self
pub fn with_keep_alive(self, enabled: bool) -> Self
Enable / disable the background /session/heartbeat task. When on,
uses [DEFAULT_KEEP_ALIVE_INTERVAL]; for an explicit period use
Self::with_keep_alive_interval. Equivalent to gosnowflake’s
client_session_keep_alive parameter.
Sourcepub fn with_keep_alive_interval(self, interval: Duration) -> Self
pub fn with_keep_alive_interval(self, interval: Duration) -> Self
Enable the heartbeat task with a caller-chosen interval. Implies
with_keep_alive(true).
Sourcepub fn with_connect_timeout(self, timeout: Duration) -> Self
pub fn with_connect_timeout(self, timeout: Duration) -> Self
TCP + TLS handshake timeout. Default: 30s.
Sourcepub fn with_request_timeout(self, timeout: Option<Duration>) -> Self
pub fn with_request_timeout(self, timeout: Option<Duration>) -> Self
Total per-request timeout. None (default) means no limit. Set this to cap how long any single HTTP round-trip can take.
See gosnowflake DefaultRequestTimeout (default 0 = no limit).
Sourcepub fn with_login_timeout(self, timeout: Duration) -> Self
pub fn with_login_timeout(self, timeout: Duration) -> Self
Login/auth flow timeout. Default: 300s.
See gosnowflake DefaultLoginTimeout.
pub fn build(self) -> Result<SnowflakeApi, SnowflakeApiError>
Auto Trait Implementations§
impl Freeze for SnowflakeApiBuilder
impl !RefUnwindSafe for SnowflakeApiBuilder
impl Send for SnowflakeApiBuilder
impl Sync for SnowflakeApiBuilder
impl Unpin for SnowflakeApiBuilder
impl UnsafeUnpin for SnowflakeApiBuilder
impl !UnwindSafe for SnowflakeApiBuilder
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> 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