pub struct Credential {Show 17 fields
pub name: String,
pub id: Option<String>,
pub purpose: i32,
pub read_only: bool,
pub comment: Option<String>,
pub owner: Option<String>,
pub created_at: Option<i64>,
pub created_by: Option<String>,
pub updated_at: Option<i64>,
pub updated_by: Option<String>,
pub used_for_managed_storage: bool,
pub full_name: Option<String>,
pub azure_service_principal: Option<AzureServicePrincipal>,
pub azure_managed_identity: Option<AzureManagedIdentity>,
pub azure_storage_key: Option<AzureStorageKey>,
pub aws_iam_role: Option<AwsIamRoleConfig>,
pub databricks_gcp_service_account: Option<DatabricksGcpServiceAccount>,
}Expand description
A credential used to access external data sources or services.
Fields§
§name: StringThe credential name.
The name must be unique among storage and service credentials within the metastore.
id: Option<String>The unique identifier of the credential.
purpose: i32Indicates the purpose of the credential.
read_only: boolWhether the credential is usable only for read operations.
Only applicable when purpose is STORAGE.
comment: Option<String>Comment associated with the credential.
owner: Option<String>Username of current owner of credential.
created_at: Option<i64>Time at which this credential was created, in epoch milliseconds.
created_by: Option<String>Username of credential creator.
updated_at: Option<i64>Time at which this credential was last modified, in epoch milliseconds.
updated_by: Option<String>Username of user who last modified the credential.
used_for_managed_storage: boolWhether this credential is the current metastore’s root storage credential.
Only applicable when purpose is STORAGE.
full_name: Option<String>The full name of the credential.
azure_service_principal: Option<AzureServicePrincipal>The Azure service principal configuration.
Sealed into the object’s inline sensitive blob (envelope-encrypted, redacted from ordinary reads) rather than stored in the searchable properties.
azure_managed_identity: Option<AzureManagedIdentity>The Azure managed identity configuration.
azure_storage_key: Option<AzureStorageKey>The Azure storage key configuration.
aws_iam_role: Option<AwsIamRoleConfig>The AWS IAM role configuration.
databricks_gcp_service_account: Option<DatabricksGcpServiceAccount>The Databricks managed GCP service account configuration.
Implementations§
Source§impl Credential
impl Credential
Sourcepub fn qualified_name(&self) -> String
pub fn qualified_name(&self) -> String
Returns the fully-qualified dot-separated name computed from component fields.
Source§impl Credential
impl Credential
Sourcepub fn purpose(&self) -> Purpose
pub fn purpose(&self) -> Purpose
Returns the enum value of purpose, or the default if the field is set to an invalid enum value.
Sourcepub fn set_purpose(&mut self, value: Purpose)
pub fn set_purpose(&mut self, value: Purpose)
Sets purpose to the provided enum value.
Sourcepub fn comment(&self) -> &str
pub fn comment(&self) -> &str
Returns the value of comment, or the default value if comment is unset.
Sourcepub fn owner(&self) -> &str
pub fn owner(&self) -> &str
Returns the value of owner, or the default value if owner is unset.
Sourcepub fn created_at(&self) -> i64
pub fn created_at(&self) -> i64
Returns the value of created_at, or the default value if created_at is unset.
Sourcepub fn created_by(&self) -> &str
pub fn created_by(&self) -> &str
Returns the value of created_by, or the default value if created_by is unset.
Sourcepub fn updated_at(&self) -> i64
pub fn updated_at(&self) -> i64
Returns the value of updated_at, or the default value if updated_at is unset.
Sourcepub fn updated_by(&self) -> &str
pub fn updated_by(&self) -> &str
Returns the value of updated_by, or the default value if updated_by is unset.
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Credential
impl Debug for Credential
Source§impl Default for Credential
impl Default for Credential
§impl<'de> Deserialize<'de> for Credential
impl<'de> Deserialize<'de> for Credential
§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>,
impl Eq for Credential
Source§impl From<Credential> for Resource
impl From<Credential> for Resource
Source§fn from(v: Credential) -> Self
fn from(v: Credential) -> Self
Source§impl Hash for Credential
impl Hash for Credential
Source§impl Message for Credential
impl Message for Credential
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.