pub struct Instruction {Show 14 fields
pub line: usize,
pub instruction: String,
pub arguments: String,
pub raw: String,
pub span: SourceSpan,
pub keyword_span: SourceSpan,
pub arguments_span: SourceSpan,
pub logical_arguments: String,
pub command: String,
pub flags: Vec<InstructionFlag>,
pub words: Vec<Word>,
pub variables: Vec<VariableReference>,
pub heredocs: Vec<Heredoc>,
pub form: InstructionForm,
}Fields§
§line: usizeCompatibility field: one-based line where the instruction starts.
instruction: StringUppercase instruction keyword.
arguments: StringCompatibility field: normalized arguments. RUN heredoc bodies are appended so existing shell-oriented rules inspect the executed script.
raw: StringExact original source covered by this instruction, including heredocs.
span: SourceSpan§keyword_span: SourceSpan§arguments_span: SourceSpan§logical_arguments: StringContinuation-normalized arguments with significant whitespace retained.
command: StringArguments after leading BuildKit flags.
flags: Vec<InstructionFlag>§words: Vec<Word>§variables: Vec<VariableReference>§heredocs: Vec<Heredoc>§form: InstructionFormTrait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
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 Instruction
impl Debug for Instruction
impl Eq for Instruction
Source§impl PartialEq for Instruction
impl PartialEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnsafeUnpin for Instruction
impl UnwindSafe for Instruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.