pub struct Dockerfile {
pub content: String,
pub instructions: Vec<Instruction>,
pub escape: char,
}Expand description
A parsed Dockerfile.
Fields§
§content: StringThe raw content of the Dockerfile.
instructions: Vec<Instruction>An ordered list of all parsed instructions.
escape: charThe line-continuation / escape character, from a # escape= directive
(\ by default).
Implementations§
Source§impl Dockerfile
impl Dockerfile
Sourcepub fn parse(input: &str) -> Result<Dockerfile, ParseErrorFailureError>
pub fn parse(input: &str) -> Result<Dockerfile, ParseErrorFailureError>
Parses a Dockerfile from a string.
Trait Implementations§
Source§impl Clone for Dockerfile
impl Clone for Dockerfile
Source§fn clone(&self) -> Dockerfile
fn clone(&self) -> Dockerfile
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 Dockerfile
impl Debug for Dockerfile
Source§impl PartialEq for Dockerfile
impl PartialEq for Dockerfile
Source§fn eq(&self, other: &Dockerfile) -> bool
fn eq(&self, other: &Dockerfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Dockerfile
Auto Trait Implementations§
impl Freeze for Dockerfile
impl RefUnwindSafe for Dockerfile
impl Send for Dockerfile
impl Sync for Dockerfile
impl Unpin for Dockerfile
impl UnsafeUnpin for Dockerfile
impl UnwindSafe for Dockerfile
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