#[non_exhaustive]pub struct VpcAccess {
pub connector: String,
pub egress: VpcEgress,
pub network_interfaces: Vec<NetworkInterface>,
/* private fields */
}Expand description
VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
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.connector: StringVPC Access connector name.
Format: projects/{project}/locations/{location}/connectors/{connector},
where {project} can be project id or number.
For more information on sending traffic to a VPC network via a connector,
visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
egress: VpcEgressOptional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.
network_interfaces: Vec<NetworkInterface>Optional. Direct VPC egress settings. Currently only single network interface is supported.
Implementations§
Source§impl VpcAccess
impl VpcAccess
pub fn new() -> Self
Sourcepub fn set_connector<T: Into<String>>(self, v: T) -> Self
pub fn set_connector<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_egress<T: Into<VpcEgress>>(self, v: T) -> Self
pub fn set_egress<T: Into<VpcEgress>>(self, v: T) -> Self
Sourcepub fn set_network_interfaces<T, V>(self, v: T) -> Self
pub fn set_network_interfaces<T, V>(self, v: T) -> Self
Sets the value of network_interfaces.
§Example
ⓘ
use google_cloud_run_v2::model::vpc_access::NetworkInterface;
let x = VpcAccess::new()
.set_network_interfaces([
NetworkInterface::default()/* use setters */,
NetworkInterface::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for VpcAccess
Auto Trait Implementations§
impl Freeze for VpcAccess
impl RefUnwindSafe for VpcAccess
impl Send for VpcAccess
impl Sync for VpcAccess
impl Unpin for VpcAccess
impl UnwindSafe for VpcAccess
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