pub struct VolumeDefinition { /* private fields */ }Expand description
A typed top-level volume definition.
Implementations§
Source§impl VolumeDefinition
impl VolumeDefinition
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete definition span.
Sourcepub fn driver_opts(&self) -> &[KeyValueEntry]
pub fn driver_opts(&self) -> &[KeyValueEntry]
Returns driver options.
Sourcepub const fn external(&self) -> Option<&Located<BooleanValue>>
pub const fn external(&self) -> Option<&Located<BooleanValue>>
Returns the external-lifecycle setting.
Sourcepub const fn custom_name(&self) -> Option<&Located<String>>
pub const fn custom_name(&self) -> Option<&Located<String>>
Returns the platform-level custom name.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized fields.
Trait Implementations§
Source§impl Clone for VolumeDefinition
impl Clone for VolumeDefinition
Source§fn clone(&self) -> VolumeDefinition
fn clone(&self) -> VolumeDefinition
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 VolumeDefinition
impl Debug for VolumeDefinition
impl Eq for VolumeDefinition
Source§impl PartialEq for VolumeDefinition
impl PartialEq for VolumeDefinition
impl StructuralPartialEq for VolumeDefinition
Auto Trait Implementations§
impl Freeze for VolumeDefinition
impl RefUnwindSafe for VolumeDefinition
impl Send for VolumeDefinition
impl Sync for VolumeDefinition
impl Unpin for VolumeDefinition
impl UnsafeUnpin for VolumeDefinition
impl UnwindSafe for VolumeDefinition
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