#[non_exhaustive]pub struct Database {
pub name: String,
pub charset: String,
pub collation: String,
pub character_type: String,
pub database_template: String,
pub is_template_database: Option<bool>,
/* private fields */
}Expand description
Message describing Database object.
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.name: StringIdentifier. Name of the resource in the form of
projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}.
charset: StringOptional. Immutable. Charset for the database. This field can contain any PostgreSQL supported charset name. Example values include “UTF8”, “SQL_ASCII”, etc.
collation: StringOptional. Immutable. lc_collate for the database. String sort order. Example values include “C”, “POSIX”, etc.
character_type: StringOptional. Immutable. lc_ctype for the database. Character classification (What is a letter? The upper-case equivalent?). Example values include “C”, “POSIX”, etc.
database_template: StringInput only. Immutable. Template of the database to be used for creating a new database.
is_template_database: Option<bool>Optional. Whether the database is a template database.
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
Sourcepub fn set_collation<T: Into<String>>(self, v: T) -> Self
pub fn set_collation<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_character_type<T: Into<String>>(self, v: T) -> Self
pub fn set_character_type<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_database_template<T: Into<String>>(self, v: T) -> Self
pub fn set_database_template<T: Into<String>>(self, v: T) -> Self
Sets the value of database_template.
§Example
let x = Database::new().set_database_template("example");Sourcepub fn set_is_template_database<T>(self, v: T) -> Self
pub fn set_is_template_database<T>(self, v: T) -> Self
Sets the value of is_template_database.
§Example
let x = Database::new().set_is_template_database(true);Sourcepub fn set_or_clear_is_template_database<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_is_template_database<T>(self, v: Option<T>) -> Self
Sets or clears the value of is_template_database.
§Example
let x = Database::new().set_or_clear_is_template_database(Some(false));
let x = Database::new().set_or_clear_is_template_database(None::<bool>);