pub struct ServeConfig {Show 19 fields
pub version: u32,
pub endpoint: String,
pub token: Option<String>,
pub namespace: String,
pub pool_name: String,
pub engine_binary_path: Option<PathBuf>,
pub engine_host: Option<String>,
pub engine_port: Option<u16>,
pub engine_spawn: EngineSpawnMode,
pub engine_auto_download: bool,
pub handle_inspector_http_in_runtime: bool,
pub serverless_base_path: Option<String>,
pub serverless_package_version: String,
pub serverless_client_endpoint: Option<String>,
pub serverless_client_namespace: Option<String>,
pub serverless_client_token: Option<String>,
pub serverless_validate_endpoint: bool,
pub serverless_max_start_payload_bytes: usize,
pub serverless_cache_envoy: bool,
}Fields§
§version: u32§endpoint: String§token: Option<String>§namespace: String§pool_name: String§engine_binary_path: Option<PathBuf>§engine_host: Option<String>§engine_port: Option<u16>§engine_spawn: EngineSpawnMode§engine_auto_download: bool§handle_inspector_http_in_runtime: bool§serverless_base_path: Option<String>§serverless_package_version: String§serverless_client_endpoint: Option<String>§serverless_client_namespace: Option<String>§serverless_client_token: Option<String>§serverless_validate_endpoint: bool§serverless_max_start_payload_bytes: usize§serverless_cache_envoy: boolImplementations§
Source§impl ServeConfig
impl ServeConfig
pub fn from_env() -> ServeConfig
Trait Implementations§
Source§impl Clone for ServeConfig
impl Clone for ServeConfig
Source§fn clone(&self) -> ServeConfig
fn clone(&self) -> ServeConfig
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 Debug for ServeConfig
impl Debug for ServeConfig
Source§impl Default for ServeConfig
impl Default for ServeConfig
Source§fn default() -> ServeConfig
fn default() -> ServeConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServeConfig
impl RefUnwindSafe for ServeConfig
impl Send for ServeConfig
impl Sync for ServeConfig
impl Unpin for ServeConfig
impl UnsafeUnpin for ServeConfig
impl UnwindSafe for ServeConfig
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