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: Span
§flags: Vec<FromFlag>
§image: SpannedString
§image_parsed: ImageRef
§index: usize
§alias: Option<SpannedString>
Trait Implementations§
Source§impl Clone for FromInstruction
impl Clone for FromInstruction
Source§fn clone(&self) -> FromInstruction
fn clone(&self) -> FromInstruction
Returns a copy of the value. Read more
1.0.0 · 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 FromInstruction
impl Debug for FromInstruction
Source§impl From<FromInstruction> for Instruction
impl From<FromInstruction> for Instruction
Source§fn from(ins: FromInstruction) -> Self
fn from(ins: FromInstruction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FromInstruction
impl PartialEq for FromInstruction
Source§impl<'a> TryFrom<&'a Instruction> for &'a FromInstruction
impl<'a> TryFrom<&'a Instruction> for &'a FromInstruction
impl Eq for FromInstruction
impl StructuralPartialEq for FromInstruction
Auto Trait Implementations§
impl Freeze for FromInstruction
impl RefUnwindSafe for FromInstruction
impl Send for FromInstruction
impl Sync for FromInstruction
impl Unpin for FromInstruction
impl UnwindSafe for FromInstruction
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