#[non_exhaustive]pub struct RetiredResource {
pub name: String,
pub original_resource: String,
pub resource_type: String,
pub delete_time: Option<Timestamp>,
/* private fields */
}Expand description
A RetiredResource resource represents the record of a deleted CryptoKey. Its purpose is to provide visibility into retained user data and to prevent reuse of these names for new CryptoKeys.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. Identifier. The resource name for this
RetiredResource in the format
projects/*/locations/*/retiredResources/*.
original_resource: StringOutput only. The full resource name of the original
CryptoKey that was deleted in the format
projects/*/locations/*/keyRings/*/cryptoKeys/*.
resource_type: StringOutput only. The resource type of the original deleted resource.
delete_time: Option<Timestamp>Output only. The time at which the original resource was deleted and this RetiredResource record was created.
Implementations§
Source§impl RetiredResource
impl RetiredResource
Sourcepub fn set_original_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_original_resource<T: Into<String>>(self, v: T) -> Self
Sets the value of original_resource.
§Example
let x = RetiredResource::new().set_original_resource("example");Sourcepub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_type.
§Example
let x = RetiredResource::new().set_resource_type("example");Sourcepub fn set_delete_time<T>(self, v: T) -> Self
pub fn set_delete_time<T>(self, v: T) -> Self
Sets the value of delete_time.
§Example
use wkt::Timestamp;
let x = RetiredResource::new().set_delete_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of delete_time.
§Example
use wkt::Timestamp;
let x = RetiredResource::new().set_or_clear_delete_time(Some(Timestamp::default()/* use setters */));
let x = RetiredResource::new().set_or_clear_delete_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for RetiredResource
impl Clone for RetiredResource
Source§fn clone(&self) -> RetiredResource
fn clone(&self) -> RetiredResource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RetiredResource
impl Debug for RetiredResource
Source§impl Default for RetiredResource
impl Default for RetiredResource
Source§fn default() -> RetiredResource
fn default() -> RetiredResource
Source§impl Message for RetiredResource
impl Message for RetiredResource
Source§impl PartialEq for RetiredResource
impl PartialEq for RetiredResource
impl StructuralPartialEq for RetiredResource
Auto Trait Implementations§
impl Freeze for RetiredResource
impl RefUnwindSafe for RetiredResource
impl Send for RetiredResource
impl Sync for RetiredResource
impl Unpin for RetiredResource
impl UnsafeUnpin for RetiredResource
impl UnwindSafe for RetiredResource
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<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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> 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