pub struct CreateCredentialRequestOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a CreateCredentialRequest message.
Wraps ::buffa::OwnedView<CreateCredentialRequestView<'static>>: the decoded view and the ::buffa::bytes::Bytes buffer it borrows from travel together, so the handle is 'static and Send + Sync — suitable for async handlers, spawned tasks, and anywhere a 'static bound is required.
Field accessors return borrows tied to &self. Use Self::view to get the full CreateCredentialRequestView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl CreateCredentialRequestOwnedView
impl CreateCredentialRequestOwnedView
Sourcepub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
pub fn decode(bytes: Bytes) -> Result<Self, DecodeError>
Decode an owned view from a ::buffa::bytes::Bytes buffer.
The view borrows directly from the buffer’s data; the buffer is retained inside the returned handle.
§Errors
Returns ::buffa::DecodeError if the buffer contains invalid
protobuf data.
Sourcepub fn decode_with_options(
bytes: Bytes,
opts: &DecodeOptions,
) -> Result<Self, DecodeError>
pub fn decode_with_options( bytes: Bytes, opts: &DecodeOptions, ) -> Result<Self, DecodeError>
Decode with custom ::buffa::DecodeOptions (recursion limit,
max message size).
§Errors
Returns ::buffa::DecodeError if the buffer is invalid or
exceeds the configured limits.
Sourcepub fn from_owned(msg: &CreateCredentialRequest) -> Result<Self, DecodeError>
pub fn from_owned(msg: &CreateCredentialRequest) -> Result<Self, DecodeError>
Build from an owned message via an encode → decode round-trip.
§Errors
Returns ::buffa::DecodeError if the re-encoded bytes are
somehow invalid (should not happen for well-formed messages).
Sourcepub fn view(&self) -> &CreateCredentialRequestView<'_>
pub fn view(&self) -> &CreateCredentialRequestView<'_>
Borrow the full CreateCredentialRequestView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> CreateCredentialRequest
pub fn to_owned_message(&self) -> CreateCredentialRequest
Convert to the owned message type.
Sourcepub fn into_bytes(self) -> Bytes
pub fn into_bytes(self) -> Bytes
Consume the handle, returning the underlying bytes buffer.
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The credential name. The name must be unique among storage and service credentials within the metastore.
Field 1: name
Sourcepub fn purpose(&self) -> EnumValue<Purpose>
pub fn purpose(&self) -> EnumValue<Purpose>
Indicates the purpose of the credential.
Field 2: purpose
Sourcepub fn read_only(&self) -> Option<bool>
pub fn read_only(&self) -> Option<bool>
Whether the credential is usable only for read operations. Only applicable when purpose is STORAGE.
Field 4: read_only
Sourcepub fn skip_validation(&self) -> Option<bool>
pub fn skip_validation(&self) -> Option<bool>
Optional. Supplying true to this argument skips validation of the created set of credentials.
Field 5: skip_validation
Sourcepub fn azure_service_principal(
&self,
) -> &MessageFieldView<AzureServicePrincipalView<'_>>
pub fn azure_service_principal( &self, ) -> &MessageFieldView<AzureServicePrincipalView<'_>>
The Azure service principal configuration.
Field 100: azure_service_principal
Sourcepub fn azure_managed_identity(
&self,
) -> &MessageFieldView<AzureManagedIdentityView<'_>>
pub fn azure_managed_identity( &self, ) -> &MessageFieldView<AzureManagedIdentityView<'_>>
The Azure managed identity configuration.
Field 101: azure_managed_identity
Sourcepub fn azure_storage_key(&self) -> &MessageFieldView<AzureStorageKeyView<'_>>
pub fn azure_storage_key(&self) -> &MessageFieldView<AzureStorageKeyView<'_>>
The Azure storage key configuration.
Field 102: azure_storage_key
Sourcepub fn aws_iam_role(&self) -> &MessageFieldView<AwsIamRoleConfigView<'_>>
pub fn aws_iam_role(&self) -> &MessageFieldView<AwsIamRoleConfigView<'_>>
The AWS IAM role configuration.
Field 103: aws_iam_role
Sourcepub fn databricks_gcp_service_account(
&self,
) -> &MessageFieldView<DatabricksGcpServiceAccountView<'_>>
pub fn databricks_gcp_service_account( &self, ) -> &MessageFieldView<DatabricksGcpServiceAccountView<'_>>
The Databricks managed GCP service account configuration.
Field 104: databricks_gcp_service_account
Trait Implementations§
Source§impl AsRef<OwnedView<CreateCredentialRequestView<'static>>> for CreateCredentialRequestOwnedView
impl AsRef<OwnedView<CreateCredentialRequestView<'static>>> for CreateCredentialRequestOwnedView
Source§fn as_ref(&self) -> &OwnedView<CreateCredentialRequestView<'static>>
fn as_ref(&self) -> &OwnedView<CreateCredentialRequestView<'static>>
Source§impl Clone for CreateCredentialRequestOwnedView
impl Clone for CreateCredentialRequestOwnedView
Source§fn clone(&self) -> CreateCredentialRequestOwnedView
fn clone(&self) -> CreateCredentialRequestOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more