pub struct RuntimeConfig { /* private fields */ }Expand description
Container runtime options loaded from a workspace manifest.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn with_setup(
image: Option<String>,
apt_packages: Vec<String>,
setup_commands: Vec<String>,
) -> Self
pub fn with_setup( image: Option<String>, apt_packages: Vec<String>, setup_commands: Vec<String>, ) -> Self
Create a runtime configuration with startup setup.
§Arguments
image- Optional Docker image used for this workspace.apt_packages- Apt packages installed by the entrypoint before Codex starts.setup_commands- Shell commands run by the entrypoint before Codex starts.
§Returns
A runtime configuration value.
Sourcepub fn image(&self) -> Option<&str>
pub fn image(&self) -> Option<&str>
Return the workspace-specific Docker image.
§Returns
Some(image) when the manifest selects a runtime image, otherwise None.
Sourcepub fn apt_packages(&self) -> &[String]
pub fn apt_packages(&self) -> &[String]
Return apt packages installed before Codex starts.
§Returns
Apt package names requested by this workspace.
Sourcepub fn setup_commands(&self) -> &[String]
pub fn setup_commands(&self) -> &[String]
Sourcepub fn environment_variables(&self) -> Vec<RuntimeEnvironmentVariable>
pub fn environment_variables(&self) -> Vec<RuntimeEnvironmentVariable>
Return Docker environment variables for runtime setup.
§Returns
Entrypoint variables generated from configured apt packages and setup commands.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
impl Eq for RuntimeConfig
Source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
Source§fn eq(&self, other: &RuntimeConfig) -> bool
fn eq(&self, other: &RuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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§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.