pub enum DatabricksAuth {
Pat {
token: String,
},
Token {
token: String,
},
}Expand description
Authentication for the Databricks SQL Statement Execution API.
Both variants send Authorization: Bearer <token> — Databricks accepts a
Personal Access Token (PAT) or an OAuth machine-to-machine (M2M) access
token in the same header. Uses the project-wide adjacently-tagged
{ type, config } shape, e.g. auth: { type: pat, config: { token: … } }.
A shared auth: { ref: <name> } provider that yields a Bearer/Token
credential maps onto DatabricksAuth::Token.
Same shape as faucet_common_databricks::DatabricksAuth (which the sink
uses); kept as this crate’s own type so its public API is unchanged, and
converted with From where the shared client needs it.
Variants§
Implementations§
Source§impl DatabricksAuth
impl DatabricksAuth
The Authorization header value (Bearer <token>).
Trait Implementations§
Source§impl Clone for DatabricksAuth
impl Clone for DatabricksAuth
Source§impl Debug for DatabricksAuth
impl Debug for DatabricksAuth
Source§impl<'de> Deserialize<'de> for DatabricksAuth
impl<'de> Deserialize<'de> for DatabricksAuth
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DatabricksAuth> for DatabricksAuth
impl From<DatabricksAuth> for DatabricksAuth
Source§fn from(a: DatabricksAuth) -> Self
fn from(a: DatabricksAuth) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DatabricksAuth
impl JsonSchema for DatabricksAuth
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DatabricksAuth
impl RefUnwindSafe for DatabricksAuth
impl Send for DatabricksAuth
impl Sync for DatabricksAuth
impl Unpin for DatabricksAuth
impl UnsafeUnpin for DatabricksAuth
impl UnwindSafe for DatabricksAuth
Blanket Implementations§
impl<T> Allocation for T
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