pub struct CreatePod {
pub name: String,
pub image: String,
pub cloud: &'static str,
pub gpu: GpuRequest,
pub disk: u32,
pub ports: Vec<String>,
pub start_ssh: bool,
pub data_center_ids: Option<Vec<String>>,
pub mounts: Option<Mounts>,
pub env: BTreeMap<String, String>,
pub cmd: Vec<String>,
}Expand description
The body of POST /pods: exactly the v2 fields overbrainer sets (the API
rejects any unknown field with a 422).
Fields§
§name: Stringoverbrainer-<run-id>-<attempt>.
image: StringContainer image, pinned by digest.
cloud: &'static strAlways SECURE.
gpu: GpuRequestThe GPU asked for.
disk: u32Container disk, in GB.
ports: Vec<String>Always ["22/tcp"].
start_ssh: boolAlways false: the bootstrap starts sshd with the per-run keys.
data_center_ids: Option<Vec<String>>Data centers the pod may be placed in; any when absent.
mounts: Option<Mounts>The network volume, when one is configured.
env: BTreeMap<String, String>The pod’s environment. It never holds a secret: the host key is a
{{ RUNPOD_SECRET_<name> }} reference that Runpod resolves at boot.
cmd: Vec<String>The pod’s command, run after the image’s entrypoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreatePod
impl RefUnwindSafe for CreatePod
impl Send for CreatePod
impl Sync for CreatePod
impl Unpin for CreatePod
impl UnsafeUnpin for CreatePod
impl UnwindSafe for CreatePod
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<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more