pub enum DockerfileElementType {
Show 47 variants
Identifier,
String,
Number,
Whitespace,
Newline,
From,
Run,
Cmd,
Label,
Maintainer,
Expose,
Env,
Add,
Copy,
Entrypoint,
Volume,
User,
Workdir,
Arg,
Onbuild,
Stopsignal,
Healthcheck,
Shell,
As,
None,
Interval,
Timeout,
StartPeriod,
Retries,
Equal,
Equals,
Colon,
Comma,
Semicolon,
Dollar,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
LeftParen,
RightParen,
Comment,
Path,
Root,
Statement,
Error,
Eof,
}Expand description
Element types for the Dockerfile parser.
Variants§
Identifier
An identifier.
String
A string literal.
Number
A numeric literal.
Whitespace
Whitespace.
Newline
A newline character.
From
FROM instruction.
Run
RUN instruction.
Cmd
CMD instruction.
Label
LABEL instruction.
Maintainer
MAINTAINER instruction.
Expose
EXPOSE instruction.
Env
ENV instruction.
Add
ADD instruction.
Copy
COPY instruction.
Entrypoint
ENTRYPOINT instruction.
Volume
VOLUME instruction.
User
USER instruction.
Workdir
WORKDIR instruction.
Arg
ARG instruction.
Onbuild
ONBUILD instruction.
Stopsignal
STOPSIGNAL instruction.
Healthcheck
HEALTHCHECK instruction.
Shell
SHELL instruction.
As
AS keyword.
None
No-op or placeholder.
Interval
interval keyword.
Timeout
timeout keyword.
StartPeriod
start-period keyword.
Retries
retries keyword.
Equal
Single equals sign =.
Equals
Double equals sign ==.
Colon
Colon :.
Comma
Comma ,.
Semicolon
Semicolon ;.
Dollar
Dollar sign $.
LeftBracket
Left bracket [.
RightBracket
Right bracket ].
LeftBrace
Left brace {.
RightBrace
Right brace }.
LeftParen
Left parenthesis (.
RightParen
Right parenthesis ).
Comment
A comment.
Path
A file path.
Root
The root of the Dockerfile.
Statement
A statement or instruction.
Error
An error element.
Eof
End of stream.
Implementations§
Trait Implementations§
Source§impl Clone for DockerfileElementType
impl Clone for DockerfileElementType
Source§fn clone(&self) -> DockerfileElementType
fn clone(&self) -> DockerfileElementType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DockerfileElementType
Source§impl Debug for DockerfileElementType
impl Debug for DockerfileElementType
Source§impl<'de> Deserialize<'de> for DockerfileElementType
impl<'de> Deserialize<'de> for DockerfileElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ElementType for DockerfileElementType
impl ElementType for DockerfileElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
impl Eq for DockerfileElementType
Source§impl From<DockerfileTokenType> for DockerfileElementType
impl From<DockerfileTokenType> for DockerfileElementType
Source§fn from(token: DockerfileTokenType) -> Self
fn from(token: DockerfileTokenType) -> Self
Source§impl Hash for DockerfileElementType
impl Hash for DockerfileElementType
Source§impl PartialEq for DockerfileElementType
impl PartialEq for DockerfileElementType
Source§fn eq(&self, other: &DockerfileElementType) -> bool
fn eq(&self, other: &DockerfileElementType) -> bool
self and other values to be equal, and is used by ==.