pub struct SnowflakeClientConfig {
pub account: String,
pub user: String,
pub auth: AuthMethod,
pub warehouse: Option<String>,
pub role: Option<String>,
pub database: Option<String>,
pub schema: Option<String>,
pub host: Option<String>,
pub http_timeout: Duration,
pub query_timeout: Duration,
}Expand description
Everything needed to authenticate and run queries against one account/user.
Fields§
§account: StringSnowflake account identifier.
user: StringLogin user.
auth: AuthMethodAuthentication method.
warehouse: Option<String>Default warehouse applied at login.
role: Option<String>Default role applied at login.
database: Option<String>Default database applied at login.
schema: Option<String>Default schema applied at login.
host: Option<String>Override the API host (defaults to <account>.snowflakecomputing.com).
http_timeout: DurationPer-request HTTP timeout for REST calls (not the SSO callback wait).
query_timeout: DurationOverall deadline for one query (submit + async-result polling).
Implementations§
Source§impl SnowflakeClientConfig
impl SnowflakeClientConfig
Sourcepub fn external_browser(
account: impl Into<String>,
user: impl Into<String>,
) -> Self
pub fn external_browser( account: impl Into<String>, user: impl Into<String>, ) -> Self
Builds a config for external-browser SSO with default browser settings.
Sourcepub fn api_host(&self) -> String
pub fn api_host(&self) -> String
The API host for this account.
Uses the host override when set; otherwise derives
<account>.snowflakecomputing.com from the account identifier — lowercased
and with underscores mapped to dashes (Snowflake’s URL rule), while region/
cloud dot-segments (e.g. acct.us-east-1.aws) are preserved.
Trait Implementations§
Source§impl Clone for SnowflakeClientConfig
impl Clone for SnowflakeClientConfig
Source§fn clone(&self) -> SnowflakeClientConfig
fn clone(&self) -> SnowflakeClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SnowflakeClientConfig
impl RefUnwindSafe for SnowflakeClientConfig
impl Send for SnowflakeClientConfig
impl Sync for SnowflakeClientConfig
impl Unpin for SnowflakeClientConfig
impl UnsafeUnpin for SnowflakeClientConfig
impl UnwindSafe for SnowflakeClientConfig
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