#[non_exhaustive]pub struct FromInstruction<'a> {
pub from: Keyword,
pub options: Vec<Flag<'a>>,
pub image: UnescapedString<'a>,
pub as_: Option<(Keyword, UnescapedString<'a>)>,
}
Expand description
A FROM
instruction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.from: Keyword
FROM [--platform=<platform>] <image> [AS <name>]
^^^^
options: Vec<Flag<'a>>
FROM [--platform=<platform>] <image> [AS <name>]
^^^^^^^^^^^^^^^^^^^^^^^
image: UnescapedString<'a>
FROM [--platform=<platform>] <image> [AS <name>]
^^^^^^^
as_: Option<(Keyword, UnescapedString<'a>)>
FROM [--platform=<platform>] <image> [AS <name>]
^^^^^^^^^^^
Trait Implementations§
Source§impl<'a> Debug for FromInstruction<'a>
impl<'a> Debug for FromInstruction<'a>
Auto Trait Implementations§
impl<'a> Freeze for FromInstruction<'a>
impl<'a> RefUnwindSafe for FromInstruction<'a>
impl<'a> Send for FromInstruction<'a>
impl<'a> Sync for FromInstruction<'a>
impl<'a> Unpin for FromInstruction<'a>
impl<'a> UnwindSafe for FromInstruction<'a>
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