pub struct RuntimeConfig {
pub endpoint: Endpoint,
pub interfaces: Option<Vec<RuntimeConfigInterface>>,
pub env: Option<HashMap<String, String>>,
}Fields§
§endpoint: 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: DatexValueProxyInfallibleSerialize>( &mut self, interface_type: String, config: T, priority: InterfacePriority, )
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 Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
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 DatexProxyTypes for RuntimeConfig
impl DatexProxyTypes for RuntimeConfig
fn datex_type(cache: &mut SharedReferencesCache) -> Type
impl DatexValueProxy for RuntimeConfig
Source§impl DatexValueProxyDeserialize for RuntimeConfig
impl DatexValueProxyDeserialize for RuntimeConfig
fn try_from_value(value: Value) -> Result<Self, TryFromDatexValueError>
fn try_from_map_property( value: Result<Value, KeyNotFoundError>, ) -> Result<Self, TryFromDatexValueError>
Source§impl DatexValueProxySerialize for RuntimeConfig
impl DatexValueProxySerialize for RuntimeConfig
fn try_to_value(self) -> Result<Value, TryToDatexValueError>
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 From<RuntimeConfig> for Value
impl From<RuntimeConfig> for Value
Source§fn from(value: RuntimeConfig) -> Self
fn from(value: RuntimeConfig) -> Self
Converts to this type from the input type.
Source§impl TryFrom<Value> for RuntimeConfig
impl TryFrom<Value> for RuntimeConfig
Source§impl TryFrom<ValueContainer> for RuntimeConfig
impl TryFrom<ValueContainer> for RuntimeConfig
Source§type Error = TryFromDatexValueError
type Error = TryFromDatexValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeConfig
impl !Send for RuntimeConfig
impl !Sync for RuntimeConfig
impl !UnwindSafe for RuntimeConfig
impl Freeze for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DatexValueContainerProxy for Twhere
T: DatexValueProxy,
Source§impl<T> DatexValueContainerProxyDeserialize for Twhere
T: DatexValueProxyDeserialize,
impl<T> DatexValueContainerProxyDeserialize for Twhere
T: DatexValueProxyDeserialize,
fn try_from_value_container( value: ValueContainer, ) -> Result<T, TryFromDatexValueError>
fn try_from_map_property( value: Result<ValueContainer, KeyNotFoundError>, ) -> Result<T, TryFromDatexValueError>
Source§fn try_from_bytes(
dxb: Vec<u8>,
runtime: &Runtime,
) -> Result<Self, DeserializationError>
fn try_from_bytes( dxb: Vec<u8>, runtime: &Runtime, ) -> Result<Self, DeserializationError>
Deserialize a value of type T from a byte slice containing DXB data
Source§impl<T> DatexValueContainerProxyInfallibleSerialize for Twhere
T: DatexValueProxyInfallibleSerialize,
impl<T> DatexValueContainerProxyInfallibleSerialize for Twhere
T: DatexValueProxyInfallibleSerialize,
fn to_value_container(self) -> ValueContainer
Source§impl<T> DatexValueContainerProxySerialize for Twhere
T: DatexValueProxySerialize,
impl<T> DatexValueContainerProxySerialize for Twhere
T: DatexValueProxySerialize,
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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type