Struct google_api_proto::google::cloud::compute::v1::DeprecationStatus
source · pub struct DeprecationStatus {
pub deleted: Option<String>,
pub deprecated: Option<String>,
pub obsolete: Option<String>,
pub replacement: Option<String>,
pub state: Option<String>,
}
Expand description
Deprecation status for a public resource.
Fields§
§deleted: Option<String>
An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DELETED. This is only informational and the status will not change unless the client explicitly changes it.
deprecated: Option<String>
An optional RFC3339 timestamp on or after which the state of this resource is intended to change to DEPRECATED. This is only informational and the status will not change unless the client explicitly changes it.
obsolete: Option<String>
An optional RFC3339 timestamp on or after which the state of this resource is intended to change to OBSOLETE. This is only informational and the status will not change unless the client explicitly changes it.
replacement: Option<String>
The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
state: Option<String>
The deprecation state of this resource. This can be ACTIVE, DEPRECATED, OBSOLETE, or DELETED. Operations which communicate the end of life date for an image, can use ACTIVE. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error. Check the State enum for the list of possible values.
Implementations§
source§impl DeprecationStatus
impl DeprecationStatus
sourcepub fn state(&self) -> &str
pub fn state(&self) -> &str
Returns the value of state
, or the default value if state
is unset.
sourcepub fn obsolete(&self) -> &str
pub fn obsolete(&self) -> &str
Returns the value of obsolete
, or the default value if obsolete
is unset.
sourcepub fn replacement(&self) -> &str
pub fn replacement(&self) -> &str
Returns the value of replacement
, or the default value if replacement
is unset.
sourcepub fn deleted(&self) -> &str
pub fn deleted(&self) -> &str
Returns the value of deleted
, or the default value if deleted
is unset.
sourcepub fn deprecated(&self) -> &str
pub fn deprecated(&self) -> &str
Returns the value of deprecated
, or the default value if deprecated
is unset.
Trait Implementations§
source§impl Clone for DeprecationStatus
impl Clone for DeprecationStatus
source§fn clone(&self) -> DeprecationStatus
fn clone(&self) -> DeprecationStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeprecationStatus
impl Debug for DeprecationStatus
source§impl Default for DeprecationStatus
impl Default for DeprecationStatus
source§impl Message for DeprecationStatus
impl Message for DeprecationStatus
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 DeprecationStatus
impl PartialEq for DeprecationStatus
source§fn eq(&self, other: &DeprecationStatus) -> bool
fn eq(&self, other: &DeprecationStatus) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DeprecationStatus
Auto Trait Implementations§
impl Freeze for DeprecationStatus
impl RefUnwindSafe for DeprecationStatus
impl Send for DeprecationStatus
impl Sync for DeprecationStatus
impl Unpin for DeprecationStatus
impl UnwindSafe for DeprecationStatus
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