pub struct PostParameters {
pub add_storages: Option<bool>,
pub application: Option<String>,
pub crush_rule: Option<String>,
pub erasure_coding: Option<String>,
pub min_size: Option<u64>,
pub name: String,
pub pg_autoscale_mode: Option<String>,
pub pg_num: Option<u64>,
pub pg_num_min: Option<u64>,
pub size: Option<u64>,
pub target_size: Option<String>,
pub target_size_ratio: Option<f64>,
}Fields§
§add_storages: Option<bool>Configure VM and CT storage using the new pool.
application: Option<String>The application of the pool.
crush_rule: Option<String>The rule to use for mapping object placement in the cluster.
erasure_coding: Option<String>Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage. With EC, the common ceph options ‘size’, ‘min_size’ and ‘crush_rule’ parameters will be applied to the metadata pool.
min_size: Option<u64>Minimum number of replicas per object
name: StringThe name of the pool. It must be unique.
pg_autoscale_mode: Option<String>The automatic PG scaling mode of the pool.
pg_num: Option<u64>Number of placement groups.
pg_num_min: Option<u64>Minimal number of placement groups.
size: Option<u64>Number of replicas per object
target_size: Option<String>The estimated target size of the pool for the PG autoscaler.
target_size_ratio: Option<f64>The estimated target ratio of the pool for the PG autoscaler.
Trait Implementations§
Source§impl Clone for PostParameters
impl Clone for PostParameters
Source§fn clone(&self) -> PostParameters
fn clone(&self) -> PostParameters
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 PostParameters
impl Debug for PostParameters
Source§impl<'de> Deserialize<'de> for PostParameters
impl<'de> Deserialize<'de> for PostParameters
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 PostParameters
impl PartialEq for PostParameters
Source§impl Serialize for PostParameters
impl Serialize for PostParameters
impl StructuralPartialEq for PostParameters
Auto Trait Implementations§
impl Freeze for PostParameters
impl RefUnwindSafe for PostParameters
impl Send for PostParameters
impl Sync for PostParameters
impl Unpin for PostParameters
impl UnwindSafe for PostParameters
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