Struct gapi_grpc::google::spanner::admin::database::v1::RestoreDatabaseEncryptionConfig[][src]

pub struct RestoreDatabaseEncryptionConfig {
    pub encryption_type: i32,
    pub kms_key_name: String,
}

Encryption configuration for the restored database.

Fields

encryption_type: i32

Required. The encryption type of the restored database.

kms_key_name: String

Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored database. This field should be set only when [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is CUSTOMER_MANAGED_ENCRYPTION. Values are of the form projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>.

Implementations

impl RestoreDatabaseEncryptionConfig[src]

pub fn encryption_type(&self) -> EncryptionType[src]

Returns the enum value of encryption_type, or the default if the field is set to an invalid enum value.

pub fn set_encryption_type(&mut self, value: EncryptionType)[src]

Sets encryption_type to the provided enum value.

Trait Implementations

impl Clone for RestoreDatabaseEncryptionConfig[src]

impl Debug for RestoreDatabaseEncryptionConfig[src]

impl Default for RestoreDatabaseEncryptionConfig[src]

impl Message for RestoreDatabaseEncryptionConfig[src]

impl PartialEq<RestoreDatabaseEncryptionConfig> for RestoreDatabaseEncryptionConfig[src]

impl StructuralPartialEq for RestoreDatabaseEncryptionConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for RestoreDatabaseEncryptionConfig

impl Send for RestoreDatabaseEncryptionConfig

impl Sync for RestoreDatabaseEncryptionConfig

impl Unpin for RestoreDatabaseEncryptionConfig

impl UnwindSafe for RestoreDatabaseEncryptionConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]