pub struct ShellInstruction {
pub span: Span,
pub expr: ShellOrExecExpr,
}Expand description
A Dockerfile SHELL instruction. Docker only permits the exec (JSON array)
form, but the shell form is tolerated so malformed input still round-trips.
Fields§
§span: Span§expr: ShellOrExecExprTrait Implementations§
Source§impl Clone for ShellInstruction
impl Clone for ShellInstruction
Source§fn clone(&self) -> ShellInstruction
fn clone(&self) -> ShellInstruction
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 ShellInstruction
impl Debug for ShellInstruction
impl Eq for ShellInstruction
Source§impl PartialEq for ShellInstruction
impl PartialEq for ShellInstruction
Source§fn eq(&self, other: &ShellInstruction) -> bool
fn eq(&self, other: &ShellInstruction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShellInstruction
Auto Trait Implementations§
impl Freeze for ShellInstruction
impl RefUnwindSafe for ShellInstruction
impl Send for ShellInstruction
impl Sync for ShellInstruction
impl Unpin for ShellInstruction
impl UnsafeUnpin for ShellInstruction
impl UnwindSafe for ShellInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.