pub struct SecurityGroup {
pub name: String,
pub urn: String,
pub vpc: String,
pub vpc_default: bool,
pub create_time: Option<Timestamp>,
pub creator: String,
pub tags: BTreeMap<String, String>,
}Expand description
Rules that allow traffic to and from the network interfaces associated with the group.
Fields§
§name: StringThe group’s resource name.
urn: StringThe group’s URN, the identifier access policies and the audit log use.
vpc: StringThe VPC the group belongs to, in the same project and region.
vpc_default: boolWhether the platform created the group with the VPC. Only the project’s default VPC has such resources. It can’t be deleted, and goes with its VPC.
create_time: Option<Timestamp>When the security group was created.
creator: StringThe principal that created the security group, such as user:<id> or
service_account:<id>; empty for one the platform created.
Labels of your own, at most 50. The origin:name tag is the name the
console shows.
Trait Implementations§
Source§impl Clone for SecurityGroup
impl Clone for SecurityGroup
Source§impl Debug for SecurityGroup
impl Debug for SecurityGroup
Source§impl Default for SecurityGroup
impl Default for SecurityGroup
Source§impl<'de> Deserialize<'de> for SecurityGroup
impl<'de> Deserialize<'de> for SecurityGroup
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 SecurityGroup
impl Message for SecurityGroup
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 SecurityGroup
impl PartialEq for SecurityGroup
Source§impl Serialize for SecurityGroup
impl Serialize for SecurityGroup
impl StructuralPartialEq for SecurityGroup
Auto Trait Implementations§
impl Forget for SecurityGroup
impl Freeze for SecurityGroup
impl RefUnwindSafe for SecurityGroup
impl Send for SecurityGroup
impl Sync for SecurityGroup
impl Unpin for SecurityGroup
impl UnsafeUnpin for SecurityGroup
impl UnwindSafe for SecurityGroup
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