pub struct RunPodSettings {
pub api_key: Option<String>,
pub default_gpu: Option<String>,
pub default_datacenter: Option<String>,
pub default_network_volume_id: Option<String>,
pub auto_teardown: bool,
pub auto_teardown_idle_mins: u32,
pub cost_alert_usd: f64,
pub endpoint: Option<String>,
}Expand description
Persisted configuration under [runpod] in config.toml.
Fields§
§api_key: Option<String>API key stored in config. Env var RUNPOD_API_KEY takes precedence.
default_gpu: Option<String>Preferred GPU, e.g. "NVIDIA GeForce RTX 5090".
default_datacenter: Option<String>Preferred datacenter id, e.g. "EUR-IS-2".
default_network_volume_id: Option<String>Attach this network volume to new pods (id from RunPod console).
auto_teardown: boolWhen true, mold runpod run deletes the pod after generating.
When false, the pod is left running for reuse. Default false.
auto_teardown_idle_mins: u32After this many minutes of idle time, background reap deletes the pod.
0 disables the idle reaper. Default 20.
cost_alert_usd: f64Fail UAT or run if cumulative pod spend for the session exceeds this
many USD. 0.0 disables the guard. Default 0.0.
endpoint: Option<String>Override the REST endpoint (mostly for testing).
Implementations§
Source§impl RunPodSettings
Redact api_key when logging.
impl RunPodSettings
Redact api_key when logging.
pub fn redacted_debug(&self) -> String
Trait Implementations§
Source§impl Clone for RunPodSettings
impl Clone for RunPodSettings
Source§fn clone(&self) -> RunPodSettings
fn clone(&self) -> RunPodSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 RunPodSettings
impl Debug for RunPodSettings
Source§impl Default for RunPodSettings
impl Default for RunPodSettings
Source§fn default() -> RunPodSettings
fn default() -> RunPodSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RunPodSettings
impl<'de> Deserialize<'de> for RunPodSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RunPodSettings
impl RefUnwindSafe for RunPodSettings
impl Send for RunPodSettings
impl Sync for RunPodSettings
impl Unpin for RunPodSettings
impl UnsafeUnpin for RunPodSettings
impl UnwindSafe for RunPodSettings
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