Skip to main content

VolumeCreate

Struct VolumeCreate 

Source
pub struct VolumeCreate {
Show 23 fields pub capacity_bytes: Option<Int64>, pub encrypted: Option<Boolean>, pub encryption_types: Option<Vec<EncryptionTypes>>, pub operations: Option<Vec<OperationUpdate>>, pub links: Option<LinksUpdate>, pub access_capabilities: Option<Vec<StorageAccessCapability>>, pub capacity: Option<CapacityUpdate>, pub low_space_warning_threshold_percents: Option<Vec<Int64>>, pub replica_info: Option<ReplicaInfoUpdate>, pub io_statistics: Option<IoStatisticsUpdate>, pub recoverable_capacity_source_count: Option<Int64>, pub provisioning_policy: Option<ProvisioningPolicy>, pub strip_size_bytes: Option<Int64>, pub read_cache_policy: Option<ReadCachePolicyType>, pub write_cache_policy: Option<WriteCachePolicyType>, pub display_name: Option<String>, pub write_hole_protection_policy: Option<WriteHoleProtectionPolicyType>, pub deduplicated: Option<Boolean>, pub compressed: Option<Boolean>, pub io_perf_mode_enabled: Option<Boolean>, pub nvme_namespace_properties: Option<NvmeNamespacePropertiesUpdate>, pub is_boot_capable: Option<Boolean>, pub replication_enabled: Option<Boolean>,
}
Expand description

Create struct corresponding to Volume

Fields§

§capacity_bytes: Option<Int64>§encrypted: Option<Boolean>§encryption_types: Option<Vec<EncryptionTypes>>§operations: Option<Vec<OperationUpdate>>§links: Option<LinksUpdate>§access_capabilities: Option<Vec<StorageAccessCapability>>§capacity: Option<CapacityUpdate>§low_space_warning_threshold_percents: Option<Vec<Int64>>§replica_info: Option<ReplicaInfoUpdate>§io_statistics: Option<IoStatisticsUpdate>§recoverable_capacity_source_count: Option<Int64>§provisioning_policy: Option<ProvisioningPolicy>§strip_size_bytes: Option<Int64>§read_cache_policy: Option<ReadCachePolicyType>§write_cache_policy: Option<WriteCachePolicyType>§display_name: Option<String>§write_hole_protection_policy: Option<WriteHoleProtectionPolicyType>§deduplicated: Option<Boolean>§compressed: Option<Boolean>§io_perf_mode_enabled: Option<Boolean>§nvme_namespace_properties: Option<NvmeNamespacePropertiesUpdate>§is_boot_capable: Option<Boolean>§replication_enabled: Option<Boolean>

Implementations§

Source§

impl VolumeCreate

Source

pub fn builder() -> Self

Source

pub fn build(self) -> Self

Source

pub fn with_capacity_bytes(self, v: Int64) -> Self

Source

pub fn with_encrypted(self, v: Boolean) -> Self

Source

pub fn with_encryption_types(self, v: Vec<EncryptionTypes>) -> Self

Source

pub fn with_operations(self, v: Vec<OperationUpdate>) -> Self

Source

pub fn with_access_capabilities(self, v: Vec<StorageAccessCapability>) -> Self

Source

pub fn with_capacity(self, v: CapacityUpdate) -> Self

Source

pub fn with_low_space_warning_threshold_percents(self, v: Vec<Int64>) -> Self

Source

pub fn with_replica_info(self, v: ReplicaInfoUpdate) -> Self

Source

pub fn with_io_statistics(self, v: IoStatisticsUpdate) -> Self

Source

pub fn with_recoverable_capacity_source_count(self, v: Int64) -> Self

Source

pub fn with_provisioning_policy(self, v: ProvisioningPolicy) -> Self

Source

pub fn with_strip_size_bytes(self, v: Int64) -> Self

Source

pub fn with_read_cache_policy(self, v: ReadCachePolicyType) -> Self

Source

pub fn with_write_cache_policy(self, v: WriteCachePolicyType) -> Self

Source

pub fn with_display_name(self, v: String) -> Self

Source

pub fn with_write_hole_protection_policy( self, v: WriteHoleProtectionPolicyType, ) -> Self

Source

pub fn with_deduplicated(self, v: Boolean) -> Self

Source

pub fn with_compressed(self, v: Boolean) -> Self

Source

pub fn with_io_perf_mode_enabled(self, v: Boolean) -> Self

Source

pub fn with_nvme_namespace_properties( self, v: NvmeNamespacePropertiesUpdate, ) -> Self

Source

pub fn with_is_boot_capable(self, v: Boolean) -> Self

Source

pub fn with_replication_enabled(self, v: Boolean) -> Self

Trait Implementations§

Source§

impl Creatable<VolumeCreate, Volume> for VolumeCollection

Source§

fn create<B>( &self, bmc: &B, create: &V, ) -> impl Future<Output = Result<ModificationResponse<R>, <B as Bmc>::Error>> + Send
where B: Bmc,

Create an entity using create as payload.
Source§

impl Debug for VolumeCreate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for VolumeCreate

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more