pub struct UpdateCredentialRequestOwnedView(/* private fields */);Expand description
Self-contained, 'static owned view of a UpdateCredentialRequest message.
Wraps ::buffa::OwnedView<UpdateCredentialRequestView<'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 UpdateCredentialRequestView when you need struct patterns, iteration helpers, or to pass the view to lifetime-parameterised code.
Implementations§
Source§impl UpdateCredentialRequestOwnedView
impl UpdateCredentialRequestOwnedView
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: &UpdateCredentialRequest) -> Result<Self, DecodeError>
pub fn from_owned(msg: &UpdateCredentialRequest) -> 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) -> &UpdateCredentialRequestView<'_>
pub fn view(&self) -> &UpdateCredentialRequestView<'_>
Borrow the full UpdateCredentialRequestView with its lifetime tied to &self.
Sourcepub fn to_owned_message(&self) -> UpdateCredentialRequest
pub fn to_owned_message(&self) -> UpdateCredentialRequest
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 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>
Supply true to this argument to skip validation of the updated credential.
Field 6: skip_validation
Sourcepub fn force(&self) -> Option<bool>
pub fn force(&self) -> Option<bool>
Force an update even if there are dependent services (when purpose is SERVICE) or dependent external locations and external tables (when purpose is STORAGE).
Field 7: force
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<UpdateCredentialRequestView<'static>>> for UpdateCredentialRequestOwnedView
impl AsRef<OwnedView<UpdateCredentialRequestView<'static>>> for UpdateCredentialRequestOwnedView
Source§fn as_ref(&self) -> &OwnedView<UpdateCredentialRequestView<'static>>
fn as_ref(&self) -> &OwnedView<UpdateCredentialRequestView<'static>>
Source§impl Clone for UpdateCredentialRequestOwnedView
impl Clone for UpdateCredentialRequestOwnedView
Source§fn clone(&self) -> UpdateCredentialRequestOwnedView
fn clone(&self) -> UpdateCredentialRequestOwnedView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more