pub enum HealthcheckTest {
String(Located<String>),
List {
span: SourceSpan,
kind: Option<HealthcheckTestKind>,
values: Vec<Located<String>>,
},
}Expand description
A health-check command with scalar and list forms kept distinct.
Variants§
String(Located<String>)
Scalar form, equivalent to CMD-SHELL after processing.
List
List form, retaining every authored item.
Fields
§
span: SourceSpanThe complete sequence span.
§
kind: Option<HealthcheckTestKind>The command mode derived from the first item, when present.
Implementations§
Source§impl HealthcheckTest
impl HealthcheckTest
Sourcepub fn kind(&self) -> Option<HealthcheckTestKind>
pub fn kind(&self) -> Option<HealthcheckTestKind>
Returns the effective command mode without rewriting the authored form.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete value span.
Trait Implementations§
Source§impl Clone for HealthcheckTest
impl Clone for HealthcheckTest
Source§fn clone(&self) -> HealthcheckTest
fn clone(&self) -> HealthcheckTest
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 HealthcheckTest
impl Debug for HealthcheckTest
impl Eq for HealthcheckTest
Source§impl PartialEq for HealthcheckTest
impl PartialEq for HealthcheckTest
impl StructuralPartialEq for HealthcheckTest
Auto Trait Implementations§
impl Freeze for HealthcheckTest
impl RefUnwindSafe for HealthcheckTest
impl Send for HealthcheckTest
impl Sync for HealthcheckTest
impl Unpin for HealthcheckTest
impl UnsafeUnpin for HealthcheckTest
impl UnwindSafe for HealthcheckTest
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