Struct google_api_proto::google::cloud::secrets::v1beta1::SecretVersion
source · pub struct SecretVersion {
pub name: String,
pub create_time: Option<Timestamp>,
pub destroy_time: Option<Timestamp>,
pub state: i32,
}
Expand description
A secret version resource in the Secret Manager API.
Fields§
§name: String
Output only. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the
format projects/*/secrets/*/versions/*
.
[SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] IDs in a [Secret][google.cloud.secrets.v1beta1.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.secrets.v1beta1.SecretVersion] was created.
destroy_time: Option<Timestamp>
Output only. The time this [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was destroyed. Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state] is [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED].
state: i32
Output only. The current state of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
Implementations§
Trait Implementations§
source§impl Clone for SecretVersion
impl Clone for SecretVersion
source§fn clone(&self) -> SecretVersion
fn clone(&self) -> SecretVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecretVersion
impl Debug for SecretVersion
source§impl Default for SecretVersion
impl Default for SecretVersion
source§impl Message for SecretVersion
impl Message for SecretVersion
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
.source§impl PartialEq for SecretVersion
impl PartialEq for SecretVersion
source§fn eq(&self, other: &SecretVersion) -> bool
fn eq(&self, other: &SecretVersion) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecretVersion
Auto Trait Implementations§
impl Freeze for SecretVersion
impl RefUnwindSafe for SecretVersion
impl Send for SecretVersion
impl Sync for SecretVersion
impl Unpin for SecretVersion
impl UnwindSafe for SecretVersion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request