#[non_exhaustive]pub enum Entrypoint {
Exec(Vec<ProtectedString>),
Shell(ProtectedString),
Empty,
}Expand description
How a service overrides the image entrypoint.
This remains distinct from Command: container runtimes combine the two values differently,
and a source can explicitly clear either image default independently.
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.
Exec(Vec<ProtectedString>)
Execute an argument vector without target-specific shell parsing.
Shell(ProtectedString)
Execute authored shell text with target-specific shell semantics still unresolved.
Empty
Explicitly clear the image entrypoint.
Trait Implementations§
Source§impl Clone for Entrypoint
impl Clone for Entrypoint
Source§fn clone(&self) -> Entrypoint
fn clone(&self) -> Entrypoint
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 Entrypoint
impl Debug for Entrypoint
impl Eq for Entrypoint
Source§impl PartialEq for Entrypoint
impl PartialEq for Entrypoint
impl StructuralPartialEq for Entrypoint
Auto Trait Implementations§
impl Freeze for Entrypoint
impl RefUnwindSafe for Entrypoint
impl Send for Entrypoint
impl Sync for Entrypoint
impl Unpin for Entrypoint
impl UnsafeUnpin for Entrypoint
impl UnwindSafe for Entrypoint
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