Struct aply_shared::secretmanager::SecretVersion[][src]

pub struct SecretVersion {
    pub name: String,
    pub create_time: Option<Timestamp>,
    pub destroy_time: Option<Timestamp>,
    pub state: i32,
    pub replication_status: Option<ReplicationStatus>,
}

A secret version resource in the Secret Manager API.

Fields

name: String

Output only. The resource name of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] in the format projects/*/secrets/*/versions/*.

[SecretVersion][google.cloud.secretmanager.v1.SecretVersion] IDs in a [Secret][google.cloud.secretmanager.v1.Secret] start at 1 and are incremented for each subsequent version of the secret.

create_time: Option<Timestamp>

Output only. The time at which the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was created.

destroy_time: Option<Timestamp>

Output only. The time this [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] was destroyed. Only present if [state][google.cloud.secretmanager.v1.SecretVersion.state] is [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED].

state: i32

Output only. The current state of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].

replication_status: Option<ReplicationStatus>

The replication status of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].

Implementations

impl SecretVersion[src]

pub fn state(&self) -> State[src]

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

pub fn set_state(&mut self, value: State)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for SecretVersion[src]

impl Debug for SecretVersion[src]

impl Default for SecretVersion[src]

impl Message for SecretVersion[src]

impl PartialEq<SecretVersion> for SecretVersion[src]

impl StructuralPartialEq for SecretVersion[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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>, 

impl<T> WithSubscriber for T[src]