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 Clone for SetEnvironmentVariableRequest
impl Clone for SetEnvironmentVariableRequest
Source§fn clone(&self) -> SetEnvironmentVariableRequest
fn clone(&self) -> SetEnvironmentVariableRequest
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 Default for SetEnvironmentVariableRequest
impl Default for SetEnvironmentVariableRequest
Source§fn default() -> SetEnvironmentVariableRequest
fn default() -> SetEnvironmentVariableRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetEnvironmentVariableRequest
impl<'de> Deserialize<'de> for SetEnvironmentVariableRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetEnvironmentVariableRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetEnvironmentVariableRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SetEnvironmentVariableRequest
impl Serialize for SetEnvironmentVariableRequest
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,
Serialize this value into the given Serde serializer. 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