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.
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§fn clone(&self) -> DatabricksAuth
fn clone(&self) -> DatabricksAuth
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 moreSource§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 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§
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