pub struct Settings {
pub image: String,
pub engine: Option<String>,
pub user: Option<String>,
pub command: Option<Vec<String>>,
pub run_args: Vec<String>,
pub engine_timeout_ms: Option<u64>,
pub engine_output_bytes: Option<u64>,
}Expand description
A template’s container settings. Unknown keys are refused.
Fields§
§image: StringThe image each container is made from.
engine: Option<String>The engine’s command line client: docker when absent; podman works the same.
user: Option<String>The user the container transport runs commands as; the image’s own when absent.
command: Option<Vec<String>>What the container runs to stay up; ["sleep", "infinity"] when absent.
run_args: Vec<String>More options for the engine’s run, such as ["--network", "none"] or a volume.
engine_timeout_ms: Option<u64>Milliseconds one engine command may run; pulling an image can take a while. Default
600000. 0 waits for the command.
engine_output_bytes: Option<u64>Bytes of an engine command’s output kept. Default 1048576 (1 MiB).
Implementations§
Trait Implementations§
Source§impl FromValue for Settings
impl FromValue for Settings
Source§const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
const KINDS: Kinds = ::ai6::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl Schema for Settings
impl Schema for Settings
Source§impl TryFrom<Settings> for ContainerTheaters
impl TryFrom<Settings> for ContainerTheaters
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.