Struct google_api_proto::google::cloud::functions::v2beta::list_runtimes_response::Runtime
source · pub struct Runtime {
pub name: String,
pub display_name: String,
pub stage: i32,
pub warnings: Vec<String>,
pub environment: i32,
pub deprecation_date: Option<Date>,
pub decommission_date: Option<Date>,
}
Expand description
Describes a runtime and any special information (e.g., deprecation status) related to it.
Fields§
§name: String
The name of the runtime, e.g., ‘go113’, ‘nodejs12’, etc.
display_name: String
The user facing name, eg ‘Go 1.13’, ‘Node.js 12’, etc.
stage: i32
The stage of life this runtime is in, e.g., BETA, GA, etc.
warnings: Vec<String>
Warning messages, e.g., a deprecation warning.
environment: i32
The environment for the runtime.
deprecation_date: Option<Date>
Deprecation date for the runtime.
decommission_date: Option<Date>
Decommission date for the runtime.
Implementations§
source§impl Runtime
impl Runtime
sourcepub fn stage(&self) -> RuntimeStage
pub fn stage(&self) -> RuntimeStage
Returns the enum value of stage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_stage(&mut self, value: RuntimeStage)
pub fn set_stage(&mut self, value: RuntimeStage)
Sets stage
to the provided enum value.
sourcepub fn environment(&self) -> Environment
pub fn environment(&self) -> Environment
Returns the enum value of environment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_environment(&mut self, value: Environment)
pub fn set_environment(&mut self, value: Environment)
Sets environment
to the provided enum value.
Trait Implementations§
source§impl Message for Runtime
impl Message for Runtime
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for Runtime
impl PartialEq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
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<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>
Wrap the input message
T
in a tonic::Request