Struct dockerfile_parser::FromInstruction
source · [−]pub struct FromInstruction {
pub span: Span,
pub flags: Vec<FromFlag>,
pub image: SpannedString,
pub image_parsed: ImageRef,
pub index: usize,
pub alias: Option<SpannedString>,
}Expand description
A Dockerfile FROM instruction.
Contains spans for the entire instruction, the image, and the alias (if any).
Fields
span: Spanflags: Vec<FromFlag>image: SpannedStringimage_parsed: ImageRefindex: usizealias: Option<SpannedString>Trait Implementations
sourceimpl Clone for FromInstruction
impl Clone for FromInstruction
sourcefn clone(&self) -> FromInstruction
fn clone(&self) -> FromInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FromInstruction
impl Debug for FromInstruction
sourceimpl From<FromInstruction> for Instruction
impl From<FromInstruction> for Instruction
sourcefn from(ins: FromInstruction) -> Self
fn from(ins: FromInstruction) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<FromInstruction> for FromInstruction
impl PartialEq<FromInstruction> for FromInstruction
sourcefn eq(&self, other: &FromInstruction) -> bool
fn eq(&self, other: &FromInstruction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FromInstruction) -> bool
fn ne(&self, other: &FromInstruction) -> bool
This method tests for !=.
sourceimpl<'a> TryFrom<&'a Instruction> for &'a FromInstruction
impl<'a> TryFrom<&'a Instruction> for &'a FromInstruction
impl Eq for FromInstruction
impl StructuralEq for FromInstruction
impl StructuralPartialEq for FromInstruction
Auto Trait Implementations
impl RefUnwindSafe for FromInstruction
impl Send for FromInstruction
impl Sync for FromInstruction
impl Unpin for FromInstruction
impl UnwindSafe for FromInstruction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more