pub struct ProjectDeployResourceReservations { /* private fields */ }Expand description
Effective deploy resource reservations with nested provenance.
Implementations§
Source§impl ProjectDeployResourceReservations
impl ProjectDeployResourceReservations
Sourcepub const fn cpus(&self) -> Option<&ProjectValue<DeployResourceCpus>>
pub const fn cpus(&self) -> Option<&ProjectValue<DeployResourceCpus>>
Returns the effective deploy resource reservation CPU scalar spelling and category.
Sourcepub const fn memory(&self) -> Option<&ProjectValue<DeployResourceMemory>>
pub const fn memory(&self) -> Option<&ProjectValue<DeployResourceMemory>>
Returns the effective deploy resource reservation memory value and its provenance.
Sourcepub const fn generic_resources(
&self,
) -> Option<&ProjectValue<Vec<ProjectValue<ProjectDeployGenericResource>>>>
pub const fn generic_resources( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectDeployGenericResource>>>>
Returns effective ordered generic-resource reservations, including an explicit empty list.
Sourcepub const fn devices(
&self,
) -> Option<&ProjectValue<Vec<ProjectValue<ProjectDeployReservationDevice>>>>
pub const fn devices( &self, ) -> Option<&ProjectValue<Vec<ProjectValue<ProjectDeployReservationDevice>>>>
Returns effective reservation devices, including an explicit empty list.
Sourcepub fn unmodeled_fields(&self) -> &[ProjectFieldReference]
pub fn unmodeled_fields(&self) -> &[ProjectFieldReference]
Returns extensions, unknown fields, and malformed children retained as evidence.
Trait Implementations§
Source§impl Clone for ProjectDeployResourceReservations
impl Clone for ProjectDeployResourceReservations
Source§fn clone(&self) -> ProjectDeployResourceReservations
fn clone(&self) -> ProjectDeployResourceReservations
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 moreimpl Eq for ProjectDeployResourceReservations
impl StructuralPartialEq for ProjectDeployResourceReservations
Auto Trait Implementations§
impl Freeze for ProjectDeployResourceReservations
impl RefUnwindSafe for ProjectDeployResourceReservations
impl Send for ProjectDeployResourceReservations
impl Sync for ProjectDeployResourceReservations
impl Unpin for ProjectDeployResourceReservations
impl UnsafeUnpin for ProjectDeployResourceReservations
impl UnwindSafe for ProjectDeployResourceReservations
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