#[non_exhaustive]pub struct Database {
pub kind: String,
pub charset: String,
pub collation: String,
pub etag: String,
pub name: String,
pub instance: String,
pub self_link: String,
pub project: String,
pub database_details: Option<DatabaseDetails>,
/* private fields */
}
Expand description
Represents a SQL database on the Cloud SQL instance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: String
This is always sql#database
.
charset: String
The Cloud SQL charset value.
collation: String
The Cloud SQL collation value.
etag: String
This field is deprecated and will be removed from a future version of the API.
name: String
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
instance: String
The name of the Cloud SQL instance. This does not include the project ID.
self_link: String
The URI of this resource.
project: String
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
database_details: Option<DatabaseDetails>
Implementations§
Source§impl Database
impl Database
pub fn new() -> Self
Sourcepub fn set_charset<T: Into<String>>(self, v: T) -> Self
pub fn set_charset<T: Into<String>>(self, v: T) -> Self
Sets the value of charset.
Sourcepub fn set_collation<T: Into<String>>(self, v: T) -> Self
pub fn set_collation<T: Into<String>>(self, v: T) -> Self
Sets the value of collation.
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sets the value of instance.
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sets the value of self_link.
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Sourcepub fn set_database_details<T: Into<Option<DatabaseDetails>>>(
self,
v: T,
) -> Self
pub fn set_database_details<T: Into<Option<DatabaseDetails>>>( self, v: T, ) -> Self
Sets the value of database_details.
Note that all the setters affecting database_details
are mutually
exclusive.
Sourcepub fn sqlserver_database_details(
&self,
) -> Option<&Box<SqlServerDatabaseDetails>>
pub fn sqlserver_database_details( &self, ) -> Option<&Box<SqlServerDatabaseDetails>>
The value of database_details
if it holds a SqlserverDatabaseDetails
, None
if the field is not set or
holds a different branch.
Sourcepub fn set_sqlserver_database_details<T: Into<Box<SqlServerDatabaseDetails>>>(
self,
v: T,
) -> Self
pub fn set_sqlserver_database_details<T: Into<Box<SqlServerDatabaseDetails>>>( self, v: T, ) -> Self
Sets the value of database_details
to hold a SqlserverDatabaseDetails
.
Note that all the setters affecting database_details
are
mutually exclusive.