pub struct CreateSandboxRequest {
pub sandbox_id: Option<String>,
pub tenant_key: Option<String>,
pub env: BTreeMap<String, String>,
pub timeout_ms: Option<u64>,
}Expand description
A request to create a sandbox.
Fields§
§sandbox_id: Option<String>Sandbox id to reconnect to, for the verbs that take one. AWS, Azure and GCP always
allocate their own on create and ignore this; only Local and Kubernetes honor it as the
new sandbox’s id. Read the id back from the response rather than assume the one sent.
tenant_key: Option<String>Opaque tenant key. Never sent to a provider verbatim — the binding derives a fixed-length identifier from it with a deployment-scoped HMAC.
env: BTreeMap<String, String>Environment variables to place in the sandbox.
timeout_ms: Option<u64>Wall-clock lifetime, after which the platform terminates the sandbox.
Requires sandboxLifetime; a backend without it refuses rather than accepting a ceiling
it would never apply. It only ever shortens: a declared ceiling still bounds the sandbox,
so a caller cannot buy itself more life than the deployment allows.
Trait Implementations§
Source§impl Clone for CreateSandboxRequest
impl Clone for CreateSandboxRequest
Source§fn clone(&self) -> CreateSandboxRequest
fn clone(&self) -> CreateSandboxRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreateSandboxRequest
impl Debug for CreateSandboxRequest
Source§impl Default for CreateSandboxRequest
impl Default for CreateSandboxRequest
Source§fn default() -> CreateSandboxRequest
fn default() -> CreateSandboxRequest
Source§impl<'de> Deserialize<'de> for CreateSandboxRequest
impl<'de> Deserialize<'de> for CreateSandboxRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateSandboxRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreateSandboxRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for CreateSandboxRequest
Source§impl PartialEq for CreateSandboxRequest
impl PartialEq for CreateSandboxRequest
Source§impl Serialize for CreateSandboxRequest
impl Serialize for CreateSandboxRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CreateSandboxRequest
Auto Trait Implementations§
impl Freeze for CreateSandboxRequest
impl RefUnwindSafe for CreateSandboxRequest
impl Send for CreateSandboxRequest
impl Sync for CreateSandboxRequest
impl Unpin for CreateSandboxRequest
impl UnsafeUnpin for CreateSandboxRequest
impl UnwindSafe for CreateSandboxRequest
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
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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