#[non_exhaustive]pub struct PrivatePoolV1Config {
pub worker_config: Option<WorkerConfig>,
pub network_config: Option<NetworkConfig>,
pub private_service_connect: Option<PrivateServiceConnect>,
/* private fields */
}Expand description
Configuration for a V1 PrivatePool.
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.worker_config: Option<WorkerConfig>Machine configuration for the workers in the pool.
network_config: Option<NetworkConfig>Network configuration for the pool.
private_service_connect: Option<PrivateServiceConnect>Immutable. Private Service Connect(PSC) Network configuration for the pool.
Implementations§
Source§impl PrivatePoolV1Config
impl PrivatePoolV1Config
pub fn new() -> Self
Sourcepub fn set_worker_config<T>(self, v: T) -> Selfwhere
T: Into<WorkerConfig>,
pub fn set_worker_config<T>(self, v: T) -> Selfwhere
T: Into<WorkerConfig>,
Sets the value of worker_config.
§Example
ⓘ
use google_cloud_build_v1::model::private_pool_v_1_config::WorkerConfig;
let x = PrivatePoolV1Config::new().set_worker_config(WorkerConfig::default()/* use setters */);Sourcepub fn set_or_clear_worker_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkerConfig>,
pub fn set_or_clear_worker_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<WorkerConfig>,
Sets or clears the value of worker_config.
§Example
ⓘ
use google_cloud_build_v1::model::private_pool_v_1_config::WorkerConfig;
let x = PrivatePoolV1Config::new().set_or_clear_worker_config(Some(WorkerConfig::default()/* use setters */));
let x = PrivatePoolV1Config::new().set_or_clear_worker_config(None::<WorkerConfig>);Sourcepub fn set_network_config<T>(self, v: T) -> Selfwhere
T: Into<NetworkConfig>,
pub fn set_network_config<T>(self, v: T) -> Selfwhere
T: Into<NetworkConfig>,
Sets the value of network_config.
§Example
ⓘ
use google_cloud_build_v1::model::private_pool_v_1_config::NetworkConfig;
let x = PrivatePoolV1Config::new().set_network_config(NetworkConfig::default()/* use setters */);Sourcepub fn set_or_clear_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConfig>,
pub fn set_or_clear_network_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkConfig>,
Sets or clears the value of network_config.
§Example
ⓘ
use google_cloud_build_v1::model::private_pool_v_1_config::NetworkConfig;
let x = PrivatePoolV1Config::new().set_or_clear_network_config(Some(NetworkConfig::default()/* use setters */));
let x = PrivatePoolV1Config::new().set_or_clear_network_config(None::<NetworkConfig>);Sourcepub fn set_private_service_connect<T>(self, v: T) -> Selfwhere
T: Into<PrivateServiceConnect>,
pub fn set_private_service_connect<T>(self, v: T) -> Selfwhere
T: Into<PrivateServiceConnect>,
Sets the value of private_service_connect.
§Example
ⓘ
use google_cloud_build_v1::model::private_pool_v_1_config::PrivateServiceConnect;
let x = PrivatePoolV1Config::new().set_private_service_connect(PrivateServiceConnect::default()/* use setters */);Sourcepub fn set_or_clear_private_service_connect<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateServiceConnect>,
pub fn set_or_clear_private_service_connect<T>(self, v: Option<T>) -> Selfwhere
T: Into<PrivateServiceConnect>,
Sets or clears the value of private_service_connect.
§Example
ⓘ
use google_cloud_build_v1::model::private_pool_v_1_config::PrivateServiceConnect;
let x = PrivatePoolV1Config::new().set_or_clear_private_service_connect(Some(PrivateServiceConnect::default()/* use setters */));
let x = PrivatePoolV1Config::new().set_or_clear_private_service_connect(None::<PrivateServiceConnect>);Trait Implementations§
Source§impl Clone for PrivatePoolV1Config
impl Clone for PrivatePoolV1Config
Source§fn clone(&self) -> PrivatePoolV1Config
fn clone(&self) -> PrivatePoolV1Config
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 Debug for PrivatePoolV1Config
impl Debug for PrivatePoolV1Config
Source§impl Default for PrivatePoolV1Config
impl Default for PrivatePoolV1Config
Source§fn default() -> PrivatePoolV1Config
fn default() -> PrivatePoolV1Config
Returns the “default value” for a type. Read more
Source§impl Message for PrivatePoolV1Config
impl Message for PrivatePoolV1Config
Source§impl PartialEq for PrivatePoolV1Config
impl PartialEq for PrivatePoolV1Config
impl StructuralPartialEq for PrivatePoolV1Config
Auto Trait Implementations§
impl Freeze for PrivatePoolV1Config
impl RefUnwindSafe for PrivatePoolV1Config
impl Send for PrivatePoolV1Config
impl Sync for PrivatePoolV1Config
impl Unpin for PrivatePoolV1Config
impl UnwindSafe for PrivatePoolV1Config
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