pub struct SetEnvironmentVariableRequest {
pub name: String,
pub value: Option<String>,
}Fields§
§name: StringEnvironment variable name. New names must be a plain JS identifier (matching ^[A-Za-z_$][A-Za-z0-9_$]*$) since the name is spliced into the NativeTS/Bun worker prologue; otherwise the request is rejected with 400. Existing names can still be updated regardless of shape.
value: Option<String>Implementations§
Source§impl SetEnvironmentVariableRequest
impl SetEnvironmentVariableRequest
pub fn new(name: String) -> SetEnvironmentVariableRequest
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetEnvironmentVariableRequest
impl<'de> Deserialize<'de> for SetEnvironmentVariableRequest
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
impl StructuralPartialEq for SetEnvironmentVariableRequest
Auto Trait Implementations§
impl Freeze for SetEnvironmentVariableRequest
impl RefUnwindSafe for SetEnvironmentVariableRequest
impl Send for SetEnvironmentVariableRequest
impl Sync for SetEnvironmentVariableRequest
impl Unpin for SetEnvironmentVariableRequest
impl UnsafeUnpin for SetEnvironmentVariableRequest
impl UnwindSafe for SetEnvironmentVariableRequest
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