pub struct DeployPlacement { /* private fields */ }Expand description
Authored deploy placement with source-aware child fields.
Implementations§
Source§impl DeployPlacement
impl DeployPlacement
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete placement mapping span.
Sourcepub fn constraints(&self) -> Option<&[Located<String>]>
pub fn constraints(&self) -> Option<&[Located<String>]>
Returns ordered raw constraints, including duplicates and empty strings.
Sourcepub fn preferences(&self) -> Option<&[DeployPlacementPreference]>
pub fn preferences(&self) -> Option<&[DeployPlacementPreference]>
Returns ordered placement preferences, including explicit empty mappings.
Sourcepub const fn max_replicas_per_node(
&self,
) -> Option<&Located<DeployPlacementMaxReplicasPerNode>>
pub const fn max_replicas_per_node( &self, ) -> Option<&Located<DeployPlacementMaxReplicasPerNode>>
Returns the authored max-replicas-per-node scalar spelling and category.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained placement extensions.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns retained unknown placement fields.
Trait Implementations§
Source§impl Clone for DeployPlacement
impl Clone for DeployPlacement
Source§fn clone(&self) -> DeployPlacement
fn clone(&self) -> DeployPlacement
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 DeployPlacement
impl Debug for DeployPlacement
impl Eq for DeployPlacement
Source§impl PartialEq for DeployPlacement
impl PartialEq for DeployPlacement
impl StructuralPartialEq for DeployPlacement
Auto Trait Implementations§
impl Freeze for DeployPlacement
impl RefUnwindSafe for DeployPlacement
impl Send for DeployPlacement
impl Sync for DeployPlacement
impl Unpin for DeployPlacement
impl UnsafeUnpin for DeployPlacement
impl UnwindSafe for DeployPlacement
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