pub struct GeneratedVolumeDriverOption { /* private fields */ }Expand description
One ordered generated volume driver option.
Implementations§
Source§impl GeneratedVolumeDriverOption
impl GeneratedVolumeDriverOption
Sourcepub fn new(
name: impl Into<String>,
value: GeneratedVolumeDriverOptionValue,
) -> Result<Self, GenerationError>
pub fn new( name: impl Into<String>, value: GeneratedVolumeDriverOptionValue, ) -> Result<Self, GenerationError>
Creates one driver option with a non-empty key and a string or number value.
§Errors
Rejects an empty or NUL-bearing key and number spellings that are not exactly one YAML number scalar. Driver-option semantics remain uninterpreted.
Sourcepub const fn value(&self) -> &GeneratedVolumeDriverOptionValue
pub const fn value(&self) -> &GeneratedVolumeDriverOptionValue
Returns the selected string or number value.
Trait Implementations§
Source§impl Clone for GeneratedVolumeDriverOption
impl Clone for GeneratedVolumeDriverOption
Source§fn clone(&self) -> GeneratedVolumeDriverOption
fn clone(&self) -> GeneratedVolumeDriverOption
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 GeneratedVolumeDriverOption
impl Debug for GeneratedVolumeDriverOption
impl Eq for GeneratedVolumeDriverOption
impl StructuralPartialEq for GeneratedVolumeDriverOption
Auto Trait Implementations§
impl Freeze for GeneratedVolumeDriverOption
impl RefUnwindSafe for GeneratedVolumeDriverOption
impl Send for GeneratedVolumeDriverOption
impl Sync for GeneratedVolumeDriverOption
impl Unpin for GeneratedVolumeDriverOption
impl UnsafeUnpin for GeneratedVolumeDriverOption
impl UnwindSafe for GeneratedVolumeDriverOption
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