#[non_exhaustive]pub struct CloudSqlInstance {
pub instances: Vec<String>,
/* private fields */
}Expand description
Represents a set of Cloud SQL instances. Each one will be available under /cloudsql/[instance]. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
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<String>The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}
Implementations§
Source§impl CloudSqlInstance
impl CloudSqlInstance
pub fn new() -> Self
Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CloudSqlInstance
impl Clone for CloudSqlInstance
Source§fn clone(&self) -> CloudSqlInstance
fn clone(&self) -> CloudSqlInstance
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 CloudSqlInstance
impl Debug for CloudSqlInstance
Source§impl Default for CloudSqlInstance
impl Default for CloudSqlInstance
Source§fn default() -> CloudSqlInstance
fn default() -> CloudSqlInstance
Returns the “default value” for a type. Read more
Source§impl Message for CloudSqlInstance
impl Message for CloudSqlInstance
Source§impl PartialEq for CloudSqlInstance
impl PartialEq for CloudSqlInstance
impl StructuralPartialEq for CloudSqlInstance
Auto Trait Implementations§
impl Freeze for CloudSqlInstance
impl RefUnwindSafe for CloudSqlInstance
impl Send for CloudSqlInstance
impl Sync for CloudSqlInstance
impl Unpin for CloudSqlInstance
impl UnwindSafe for CloudSqlInstance
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