pub struct RuntimeConfig {
pub endpoint: Option<Endpoint>,
pub interfaces: Option<Vec<RuntimeConfigInterface>>,
pub env: Option<HashMap<String, String>>,
}Fields§
§endpoint: Option<Endpoint>§interfaces: Option<Vec<RuntimeConfigInterface>>§env: Option<HashMap<String, String>>Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn new_with_endpoint(endpoint: Endpoint) -> Self
pub fn add_interface<T: Serialize>( &mut self, interface_type: String, config: T, priority: InterfacePriority, ) -> Result<(), SerializationError>
Sourcepub fn add_env_var(&mut self, key: String, value: String)
pub fn add_env_var(&mut self, key: String, value: String)
Adds a single environment variable to the runtime’s custom environment variables.
Sourcepub fn add_env_vars(&mut self, vars: HashMap<String, String>)
pub fn add_env_vars(&mut self, vars: HashMap<String, String>)
Adds multiple environment variables to the runtime’s custom environment variables.
Trait Implementations§
Source§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
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
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl !RefUnwindSafe for RuntimeConfig
impl !Send for RuntimeConfig
impl !Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl !UnwindSafe for RuntimeConfig
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
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>
Converts
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>
Converts
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