pub struct DeployRestartPolicy { /* private fields */ }Expand description
A deploy restart-policy mapping with independent raw-preserving members.
Implementations§
Source§impl DeployRestartPolicy
impl DeployRestartPolicy
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete restart-policy mapping span.
Sourcepub const fn condition(&self) -> Option<&Located<DeployRestartCondition>>
pub const fn condition(&self) -> Option<&Located<DeployRestartCondition>>
Returns the explicit restart condition.
Sourcepub const fn delay(&self) -> Option<&Located<DeployRestartDuration>>
pub const fn delay(&self) -> Option<&Located<DeployRestartDuration>>
Returns the raw delay spelling.
Sourcepub const fn max_attempts(&self) -> Option<&Located<DeployRestartMaxAttempts>>
pub const fn max_attempts(&self) -> Option<&Located<DeployRestartMaxAttempts>>
Returns the raw maximum-attempts YAML scalar.
Sourcepub const fn window(&self) -> Option<&Located<DeployRestartDuration>>
pub const fn window(&self) -> Option<&Located<DeployRestartDuration>>
Returns the raw restart window spelling.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained restart-policy extensions.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns retained unknown restart-policy fields.
Trait Implementations§
Source§impl Clone for DeployRestartPolicy
impl Clone for DeployRestartPolicy
Source§fn clone(&self) -> DeployRestartPolicy
fn clone(&self) -> DeployRestartPolicy
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 DeployRestartPolicy
impl Debug for DeployRestartPolicy
impl Eq for DeployRestartPolicy
Source§impl PartialEq for DeployRestartPolicy
impl PartialEq for DeployRestartPolicy
impl StructuralPartialEq for DeployRestartPolicy
Auto Trait Implementations§
impl Freeze for DeployRestartPolicy
impl RefUnwindSafe for DeployRestartPolicy
impl Send for DeployRestartPolicy
impl Sync for DeployRestartPolicy
impl Unpin for DeployRestartPolicy
impl UnsafeUnpin for DeployRestartPolicy
impl UnwindSafe for DeployRestartPolicy
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