pub struct DeployReservationDevice { /* private fields */ }Expand description
One schema-backed deploy resource-reservation device item.
Implementations§
Source§impl DeployReservationDevice
impl DeployReservationDevice
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete item span.
Sourcepub const fn form(&self) -> DeployReservationDeviceForm
pub const fn form(&self) -> DeployReservationDeviceForm
Returns whether the item was a mapping or an unmodeled sequence entry.
Sourcepub const fn capabilities(&self) -> Option<&DeployReservationDeviceCapabilities>
pub const fn capabilities(&self) -> Option<&DeployReservationDeviceCapabilities>
Returns the required capabilities list when its form was valid.
Sourcepub const fn driver(&self) -> Option<&Located<String>>
pub const fn driver(&self) -> Option<&Located<String>>
Returns the optional raw device driver when its form was valid.
Sourcepub const fn count(&self) -> Option<&Located<DeployReservationDeviceCount>>
pub const fn count(&self) -> Option<&Located<DeployReservationDeviceCount>>
Returns the optional raw device allocation count when its scalar form was valid.
Sourcepub const fn device_ids(&self) -> Option<&DeployReservationDeviceIds>
pub const fn device_ids(&self) -> Option<&DeployReservationDeviceIds>
Returns optional ordered device allocation IDs, including an explicit empty list.
Sourcepub const fn options(&self) -> Option<&DeployReservationDeviceOptions>
pub const fn options(&self) -> Option<&DeployReservationDeviceOptions>
Returns optional raw device options without provider-specific interpretation.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained extensions.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns retained unknown or malformed fields.
Trait Implementations§
Source§impl Clone for DeployReservationDevice
impl Clone for DeployReservationDevice
Source§fn clone(&self) -> DeployReservationDevice
fn clone(&self) -> DeployReservationDevice
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 DeployReservationDevice
impl Debug for DeployReservationDevice
impl Eq for DeployReservationDevice
Source§impl PartialEq for DeployReservationDevice
impl PartialEq for DeployReservationDevice
impl StructuralPartialEq for DeployReservationDevice
Auto Trait Implementations§
impl Freeze for DeployReservationDevice
impl RefUnwindSafe for DeployReservationDevice
impl Send for DeployReservationDevice
impl Sync for DeployReservationDevice
impl Unpin for DeployReservationDevice
impl UnsafeUnpin for DeployReservationDevice
impl UnwindSafe for DeployReservationDevice
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