pub struct SecretMetadata {
pub cached_at: Timestamp,
pub key: SecretVaultKey,
pub labels: Option<Vec<SecretMetadataLabel>>,
pub annotations: Option<Vec<SecretMetadataAnnotation>>,
pub description: Option<String>,
pub expiration: Option<SecretExpiration>,
pub version: Option<SecretVersion>,
pub created_at: Option<Timestamp>,
pub updated_at: Option<Timestamp>,
}Fields§
§cached_at: Timestamp§key: SecretVaultKey§labels: Option<Vec<SecretMetadataLabel>>§annotations: Option<Vec<SecretMetadataAnnotation>>§description: Option<String>§expiration: Option<SecretExpiration>§version: Option<SecretVersion>§created_at: Option<Timestamp>§updated_at: Option<Timestamp>Implementations§
Source§impl SecretMetadata
impl SecretMetadata
pub fn new(key: SecretVaultKey) -> Self
pub fn cached_at(&mut self, value: Timestamp) -> &mut Self
pub fn with_cached_at(self, value: Timestamp) -> Self
pub fn key(&mut self, value: SecretVaultKey) -> &mut Self
pub fn with_key(self, value: SecretVaultKey) -> Self
pub fn labels(&mut self, value: Vec<SecretMetadataLabel>) -> &mut Self
pub fn reset_labels(&mut self) -> &mut Self
pub fn mopt_labels( &mut self, value: Option<Vec<SecretMetadataLabel>>, ) -> &mut Self
pub fn with_labels(self, value: Vec<SecretMetadataLabel>) -> Self
pub fn without_labels(self) -> Self
pub fn opt_labels(self, value: Option<Vec<SecretMetadataLabel>>) -> Self
pub fn annotations(&mut self, value: Vec<SecretMetadataAnnotation>) -> &mut Self
pub fn reset_annotations(&mut self) -> &mut Self
pub fn mopt_annotations( &mut self, value: Option<Vec<SecretMetadataAnnotation>>, ) -> &mut Self
pub fn with_annotations(self, value: Vec<SecretMetadataAnnotation>) -> Self
pub fn without_annotations(self) -> Self
pub fn opt_annotations( self, value: Option<Vec<SecretMetadataAnnotation>>, ) -> Self
pub fn description(&mut self, value: String) -> &mut Self
pub fn reset_description(&mut self) -> &mut Self
pub fn mopt_description(&mut self, value: Option<String>) -> &mut Self
pub fn with_description(self, value: String) -> Self
pub fn without_description(self) -> Self
pub fn opt_description(self, value: Option<String>) -> Self
pub fn expiration(&mut self, value: SecretExpiration) -> &mut Self
pub fn reset_expiration(&mut self) -> &mut Self
pub fn mopt_expiration(&mut self, value: Option<SecretExpiration>) -> &mut Self
pub fn with_expiration(self, value: SecretExpiration) -> Self
pub fn without_expiration(self) -> Self
pub fn opt_expiration(self, value: Option<SecretExpiration>) -> Self
pub fn version(&mut self, value: SecretVersion) -> &mut Self
pub fn reset_version(&mut self) -> &mut Self
pub fn mopt_version(&mut self, value: Option<SecretVersion>) -> &mut Self
pub fn with_version(self, value: SecretVersion) -> Self
pub fn without_version(self) -> Self
pub fn opt_version(self, value: Option<SecretVersion>) -> Self
pub fn created_at(&mut self, value: Timestamp) -> &mut Self
pub fn reset_created_at(&mut self) -> &mut Self
pub fn mopt_created_at(&mut self, value: Option<Timestamp>) -> &mut Self
pub fn with_created_at(self, value: Timestamp) -> Self
pub fn without_created_at(self) -> Self
pub fn opt_created_at(self, value: Option<Timestamp>) -> Self
pub fn updated_at(&mut self, value: Timestamp) -> &mut Self
pub fn reset_updated_at(&mut self) -> &mut Self
pub fn mopt_updated_at(&mut self, value: Option<Timestamp>) -> &mut Self
pub fn with_updated_at(self, value: Timestamp) -> Self
pub fn without_updated_at(self) -> Self
pub fn opt_updated_at(self, value: Option<Timestamp>) -> Self
Source§impl SecretMetadata
impl SecretMetadata
pub fn create_from_ref(secret_ref: &SecretVaultRef) -> Self
pub fn add_label(&mut self, label: SecretMetadataLabel) -> &Self
pub fn add_annotation(&mut self, annotation: SecretMetadataAnnotation) -> &Self
Trait Implementations§
Source§impl Clone for SecretMetadata
impl Clone for SecretMetadata
Source§fn clone(&self) -> SecretMetadata
fn clone(&self) -> SecretMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretMetadata
impl Debug for SecretMetadata
impl Eq for SecretMetadata
Source§impl From<SecretMetadataInit> for SecretMetadata
impl From<SecretMetadataInit> for SecretMetadata
Source§fn from(value: SecretMetadataInit) -> Self
fn from(value: SecretMetadataInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecretMetadata
impl PartialEq for SecretMetadata
impl StructuralPartialEq for SecretMetadata
Auto Trait Implementations§
impl Freeze for SecretMetadata
impl RefUnwindSafe for SecretMetadata
impl Send for SecretMetadata
impl Sync for SecretMetadata
impl Unpin for SecretMetadata
impl UnsafeUnpin for SecretMetadata
impl UnwindSafe for SecretMetadata
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.