pub struct LaunchTemplate {
pub name: String,
pub launch_template_data: Option<LaunchTemplateData>,
pub default_version: i32,
pub latest_version: i32,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
A recipe kept under a name: numbered versions of it, and the one that is the default.
Fields§
§name: StringThe launch template’s resource name.
launch_template_data: Option<LaunchTemplateData>The recipe of the default version. On creation, the recipe of version 1.
default_version: i32The number of the version launches use when they name no version.
latest_version: i32The number of the newest version.
create_time: Option<Timestamp>When the launch template was created.
creator: StringThe principal that created the launch template, by its full name on
iam: //iam.origincloudapis.eu/users/{user},
//iam.origincloudapis.eu/organizations/{organization}/serviceAccounts/{service_account},
or a platform service agent’s or service’s name when the platform did.
Labels of your own for the launch template, at most 50. The
origin:name tag is the name the console shows. The recipe’s own
tags are the instances’.
Trait Implementations§
Source§impl Clone for LaunchTemplate
impl Clone for LaunchTemplate
Source§impl Debug for LaunchTemplate
impl Debug for LaunchTemplate
Source§impl Default for LaunchTemplate
impl Default for LaunchTemplate
Source§impl<'de> Deserialize<'de> for LaunchTemplate
impl<'de> Deserialize<'de> for LaunchTemplate
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for LaunchTemplate
impl Message for LaunchTemplate
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 LaunchTemplate
impl PartialEq for LaunchTemplate
Source§impl Serialize for LaunchTemplate
impl Serialize for LaunchTemplate
impl StructuralPartialEq for LaunchTemplate
Auto Trait Implementations§
impl Forget for LaunchTemplate
impl Freeze for LaunchTemplate
impl Move for LaunchTemplate
impl RefUnwindSafe for LaunchTemplate
impl Send for LaunchTemplate
impl Sync for LaunchTemplate
impl Unpin for LaunchTemplate
impl UnsafeUnpin for LaunchTemplate
impl UnwindSafe for LaunchTemplate
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