pub struct DatabaseCluster {Show 14 fields
pub id: f64,
pub created_at: String,
pub location: Option<Location>,
pub name: String,
pub networks: Vec<DatabaseClusterNetworksInner>,
pub type: DbType,
pub hash_type: Option<HashType>,
pub avatar_link: Option<String>,
pub port: Option<i32>,
pub status: Status,
pub preset_id: i32,
pub disk: Option<Option<Box<DatabaseClusterDisk>>>,
pub config_parameters: Box<ConfigParameters>,
pub is_enabled_public_network: bool,
}Expand description
DatabaseCluster : Кластер базы данных
Fields§
§id: f64ID для каждого экземпляра базы данных. Автоматически генерируется при создании.
created_at: StringЗначение времени, указанное в комбинированном формате даты и времени ISO8601, которое представляет, когда была создана база данных.
location: Option<Location>Локация сервера.
name: StringНазвание кластера базы данных.
networks: Vec<DatabaseClusterNetworksInner>Список сетей кластера базы данных.
type: DbType§hash_type: Option<HashType>Тип хеширования кластера базы данных (mysql5 | mysql | postgres).
avatar_link: Option<String>Ссылка на аватар для базы данных.
port: Option<i32>Порт
status: StatusТекущий статус кластера базы данных.
preset_id: i32ID тарифа.
disk: Option<Option<Box<DatabaseClusterDisk>>>§config_parameters: Box<ConfigParameters>§is_enabled_public_network: boolДоступность публичного IP-адреса
Implementations§
Source§impl DatabaseCluster
impl DatabaseCluster
Sourcepub fn new(
id: f64,
created_at: String,
location: Option<Location>,
name: String,
networks: Vec<DatabaseClusterNetworksInner>,
type: DbType,
hash_type: Option<HashType>,
avatar_link: Option<String>,
port: Option<i32>,
status: Status,
preset_id: i32,
config_parameters: ConfigParameters,
is_enabled_public_network: bool,
) -> DatabaseCluster
pub fn new( id: f64, created_at: String, location: Option<Location>, name: String, networks: Vec<DatabaseClusterNetworksInner>, type: DbType, hash_type: Option<HashType>, avatar_link: Option<String>, port: Option<i32>, status: Status, preset_id: i32, config_parameters: ConfigParameters, is_enabled_public_network: bool, ) -> DatabaseCluster
Кластер базы данных
Trait Implementations§
Source§impl Clone for DatabaseCluster
impl Clone for DatabaseCluster
Source§fn clone(&self) -> DatabaseCluster
fn clone(&self) -> DatabaseCluster
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DatabaseCluster
impl Debug for DatabaseCluster
Source§impl Default for DatabaseCluster
impl Default for DatabaseCluster
Source§fn default() -> DatabaseCluster
fn default() -> DatabaseCluster
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseCluster
impl<'de> Deserialize<'de> for DatabaseCluster
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DatabaseCluster
impl PartialEq for DatabaseCluster
Source§fn eq(&self, other: &DatabaseCluster) -> bool
fn eq(&self, other: &DatabaseCluster) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DatabaseCluster
impl Serialize for DatabaseCluster
impl StructuralPartialEq for DatabaseCluster
Auto Trait Implementations§
impl Freeze for DatabaseCluster
impl RefUnwindSafe for DatabaseCluster
impl Send for DatabaseCluster
impl Sync for DatabaseCluster
impl Unpin for DatabaseCluster
impl UnsafeUnpin for DatabaseCluster
impl UnwindSafe for DatabaseCluster
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