Enum Instruction

Source
#[non_exhaustive]
pub enum Instruction<'a> {
Show 18 variants Add(AddInstruction<'a>), Arg(ArgInstruction<'a>), Cmd(CmdInstruction<'a>), Copy(CopyInstruction<'a>), Entrypoint(EntrypointInstruction<'a>), Env(EnvInstruction<'a>), Expose(ExposeInstruction<'a>), From(FromInstruction<'a>), Healthcheck(HealthcheckInstruction<'a>), Label(LabelInstruction<'a>), Maintainer(MaintainerInstruction<'a>), Onbuild(OnbuildInstruction<'a>), Run(RunInstruction<'a>), Shell(ShellInstruction<'a>), Stopsignal(StopsignalInstruction<'a>), User(UserInstruction<'a>), Volume(VolumeInstruction<'a>), Workdir(WorkdirInstruction<'a>),
}
Expand description

An instruction.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Add(AddInstruction<'a>)

ADD instruction.

§

Arg(ArgInstruction<'a>)

ARG instruction.

§

Cmd(CmdInstruction<'a>)

CMD instruction.

§

Copy(CopyInstruction<'a>)

COPY instruction.

§

Entrypoint(EntrypointInstruction<'a>)

ENTRYPOINT instruction.

§

Env(EnvInstruction<'a>)

ENV instruction.

§

Expose(ExposeInstruction<'a>)

EXPOSE instruction.

§

From(FromInstruction<'a>)

FROM instruction.

§

Healthcheck(HealthcheckInstruction<'a>)

HEALTHCHECK instruction.

§

Label(LabelInstruction<'a>)

LABEL instruction.

§

Maintainer(MaintainerInstruction<'a>)

MAINTAINER instruction (deprecated).

§

Onbuild(OnbuildInstruction<'a>)

ONBUILD instruction.

§

Run(RunInstruction<'a>)

RUN instruction.

§

Shell(ShellInstruction<'a>)

SHELL instruction.

§

Stopsignal(StopsignalInstruction<'a>)

STOPSIGNAL instruction.

§

User(UserInstruction<'a>)

USER instruction.

§

Volume(VolumeInstruction<'a>)

VOLUME instruction.

§

Workdir(WorkdirInstruction<'a>)

WORKDIR instruction.

Trait Implementations§

Source§

impl<'a> Debug for Instruction<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Serialize for Instruction<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for Instruction<'a>

§

impl<'a> RefUnwindSafe for Instruction<'a>

§

impl<'a> Send for Instruction<'a>

§

impl<'a> Sync for Instruction<'a>

§

impl<'a> Unpin for Instruction<'a>

§

impl<'a> UnwindSafe for Instruction<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.