#[non_exhaustive]pub struct PacketMirroringMirroredResourceInfo {
pub instances: Vec<PacketMirroringMirroredResourceInfoInstanceInfo>,
pub subnetworks: Vec<PacketMirroringMirroredResourceInfoSubnetInfo>,
pub tags: Vec<String>,
/* private fields */
}Available on crate feature
packet-mirrorings only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instances: Vec<PacketMirroringMirroredResourceInfoInstanceInfo>A set of virtual machine instances that are being mirrored. They must live in zones contained in the same region as this packetMirroring.
Note that this config will apply only to those network interfaces of the Instances that belong to the network specified in this packetMirroring.
You may specify a maximum of 50 Instances.
subnetworks: Vec<PacketMirroringMirroredResourceInfoSubnetInfo>A set of subnetworks for which traffic from/to all VM instances will be mirrored. They must live in the same region as this packetMirroring.
You may specify a maximum of 5 subnetworks.
A set of mirrored tags. Traffic from/to all VM instances that have one or more of these tags will be mirrored.
Implementations§
Source§impl PacketMirroringMirroredResourceInfo
impl PacketMirroringMirroredResourceInfo
pub fn new() -> Self
Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Sets the value of instances.
§Example
ⓘ
use google_cloud_compute_v1::model::PacketMirroringMirroredResourceInfoInstanceInfo;
let x = PacketMirroringMirroredResourceInfo::new()
.set_instances([
PacketMirroringMirroredResourceInfoInstanceInfo::default()/* use setters */,
PacketMirroringMirroredResourceInfoInstanceInfo::default()/* use (different) setters */,
]);Sourcepub fn set_subnetworks<T, V>(self, v: T) -> Self
pub fn set_subnetworks<T, V>(self, v: T) -> Self
Sets the value of subnetworks.
§Example
ⓘ
use google_cloud_compute_v1::model::PacketMirroringMirroredResourceInfoSubnetInfo;
let x = PacketMirroringMirroredResourceInfo::new()
.set_subnetworks([
PacketMirroringMirroredResourceInfoSubnetInfo::default()/* use setters */,
PacketMirroringMirroredResourceInfoSubnetInfo::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for PacketMirroringMirroredResourceInfo
impl Clone for PacketMirroringMirroredResourceInfo
Source§fn clone(&self) -> PacketMirroringMirroredResourceInfo
fn clone(&self) -> PacketMirroringMirroredResourceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PacketMirroringMirroredResourceInfo
impl Default for PacketMirroringMirroredResourceInfo
Source§fn default() -> PacketMirroringMirroredResourceInfo
fn default() -> PacketMirroringMirroredResourceInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for PacketMirroringMirroredResourceInfo
impl PartialEq for PacketMirroringMirroredResourceInfo
Source§fn eq(&self, other: &PacketMirroringMirroredResourceInfo) -> bool
fn eq(&self, other: &PacketMirroringMirroredResourceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PacketMirroringMirroredResourceInfo
Auto Trait Implementations§
impl Freeze for PacketMirroringMirroredResourceInfo
impl RefUnwindSafe for PacketMirroringMirroredResourceInfo
impl Send for PacketMirroringMirroredResourceInfo
impl Sync for PacketMirroringMirroredResourceInfo
impl Unpin for PacketMirroringMirroredResourceInfo
impl UnwindSafe for PacketMirroringMirroredResourceInfo
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