#[non_exhaustive]pub struct PscConfig {
pub psc_enabled: Option<bool>,
pub allowed_consumer_projects: Vec<String>,
/* private fields */
}
Expand description
PSC settings for a Cloud SQL instance.
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.psc_enabled: Option<bool>
Whether PSC connectivity is enabled for this instance.
allowed_consumer_projects: Vec<String>
Optional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
Implementations§
Source§impl PscConfig
impl PscConfig
pub fn new() -> Self
Sourcepub fn set_psc_enabled<T>(self, v: T) -> Self
pub fn set_psc_enabled<T>(self, v: T) -> Self
Sets the value of psc_enabled.
Sourcepub fn set_or_clear_psc_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_psc_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of psc_enabled.
Sourcepub fn set_allowed_consumer_projects<T, V>(self, v: T) -> Self
pub fn set_allowed_consumer_projects<T, V>(self, v: T) -> Self
Sets the value of allowed_consumer_projects.
Trait Implementations§
impl StructuralPartialEq for PscConfig
Auto Trait Implementations§
impl Freeze for PscConfig
impl RefUnwindSafe for PscConfig
impl Send for PscConfig
impl Sync for PscConfig
impl Unpin for PscConfig
impl UnwindSafe for PscConfig
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