Struct deno_runtime::BootstrapOptions
source · pub struct BootstrapOptions {Show 13 fields
pub args: Vec<String>,
pub cpu_count: usize,
pub debug_flag: bool,
pub enable_testing_features: bool,
pub locale: String,
pub location: Option<ModuleSpecifier>,
pub no_color: bool,
pub is_tty: bool,
pub runtime_version: String,
pub ts_version: String,
pub unstable: bool,
pub user_agent: String,
pub inspect: bool,
}
Expand description
Common bootstrap options for MainWorker & WebWorker
Fields§
§args: Vec<String>
Sets Deno.args
in JS runtime.
cpu_count: usize
§debug_flag: bool
§enable_testing_features: bool
§locale: String
§location: Option<ModuleSpecifier>
§no_color: bool
Sets Deno.noColor
in JS runtime.
is_tty: bool
§runtime_version: String
Sets Deno.version.deno
in JS runtime.
ts_version: String
Sets Deno.version.typescript
in JS runtime.
unstable: bool
§user_agent: String
§inspect: bool
Implementations§
Trait Implementations§
source§impl Clone for BootstrapOptions
impl Clone for BootstrapOptions
source§fn clone(&self) -> BootstrapOptions
fn clone(&self) -> BootstrapOptions
Returns a copy 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 more