pub struct UpdateDatabaseParams {
pub name: Option<String>,
pub memory_limit_in_gb: Option<f64>,
pub replication: Option<bool>,
pub data_persistence: Option<String>,
pub data_eviction_policy: Option<String>,
pub support_oss_cluster_api: Option<bool>,
}Expand description
Parameters for updating a database
All fields are optional - only set fields you want to change.
Fields§
§name: Option<String>New database name
memory_limit_in_gb: Option<f64>New memory limit in GB
replication: Option<bool>Change replication setting
data_persistence: Option<String>Change data persistence
data_eviction_policy: Option<String>Change eviction policy
support_oss_cluster_api: Option<bool>Change OSS Cluster API support
Implementations§
Source§impl UpdateDatabaseParams
impl UpdateDatabaseParams
Sourcepub fn with_memory_limit(self, memory_gb: f64) -> Self
pub fn with_memory_limit(self, memory_gb: f64) -> Self
Set new memory limit
Sourcepub fn with_replication(self, replication: bool) -> Self
pub fn with_replication(self, replication: bool) -> Self
Set replication
Sourcepub fn with_data_persistence(self, persistence: impl Into<String>) -> Self
pub fn with_data_persistence(self, persistence: impl Into<String>) -> Self
Set data persistence
Sourcepub fn with_eviction_policy(self, policy: impl Into<String>) -> Self
pub fn with_eviction_policy(self, policy: impl Into<String>) -> Self
Set eviction policy
Sourcepub fn with_oss_cluster_api(self, enabled: bool) -> Self
pub fn with_oss_cluster_api(self, enabled: bool) -> Self
Enable/disable OSS Cluster API
Sourcepub fn into_request(self) -> DatabaseUpdateRequest
pub fn into_request(self) -> DatabaseUpdateRequest
Convert to Layer 1 DatabaseUpdateRequest
Trait Implementations§
Source§impl Clone for UpdateDatabaseParams
impl Clone for UpdateDatabaseParams
Source§fn clone(&self) -> UpdateDatabaseParams
fn clone(&self) -> UpdateDatabaseParams
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 UpdateDatabaseParams
impl Debug for UpdateDatabaseParams
Source§impl Default for UpdateDatabaseParams
impl Default for UpdateDatabaseParams
Source§fn default() -> UpdateDatabaseParams
fn default() -> UpdateDatabaseParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateDatabaseParams
impl RefUnwindSafe for UpdateDatabaseParams
impl Send for UpdateDatabaseParams
impl Sync for UpdateDatabaseParams
impl Unpin for UpdateDatabaseParams
impl UnsafeUnpin for UpdateDatabaseParams
impl UnwindSafe for UpdateDatabaseParams
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