pub struct RuntimeConfigInterface {
pub interface_type: String,
pub config: Value,
pub priority: InterfacePriority,
}Expand description
A generic interface configuration to setup a runtime interface.
Fields§
§interface_type: String§config: Value§priority: InterfacePriorityImplementations§
Source§impl RuntimeConfigInterface
impl RuntimeConfigInterface
pub fn new<T: DatexValueProxySerialize>( interface_type: &str, setup_data: T, ) -> Result<RuntimeConfigInterface, String>
pub fn new_from_map( interface_type: &str, config: Value, ) -> RuntimeConfigInterface
Trait Implementations§
Source§impl Clone for RuntimeConfigInterface
impl Clone for RuntimeConfigInterface
Source§fn clone(&self) -> RuntimeConfigInterface
fn clone(&self) -> RuntimeConfigInterface
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 RuntimeConfigInterface
impl DatexProxyTypes for RuntimeConfigInterface
fn datex_type(cache: &mut SharedReferencesCache) -> Type
impl DatexValueProxy for RuntimeConfigInterface
Source§impl DatexValueProxyDeserialize for RuntimeConfigInterface
impl DatexValueProxyDeserialize for RuntimeConfigInterface
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 RuntimeConfigInterface
impl DatexValueProxySerialize for RuntimeConfigInterface
fn try_to_value(self) -> Result<Value, TryToDatexValueError>
Source§impl Debug for RuntimeConfigInterface
impl Debug for RuntimeConfigInterface
impl Eq for RuntimeConfigInterface
Source§impl From<RuntimeConfigInterface> for Value
impl From<RuntimeConfigInterface> for Value
Source§fn from(value: RuntimeConfigInterface) -> Self
fn from(value: RuntimeConfigInterface) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuntimeConfigInterface
impl PartialEq for RuntimeConfigInterface
Source§fn eq(&self, other: &RuntimeConfigInterface) -> bool
fn eq(&self, other: &RuntimeConfigInterface) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeConfigInterface
Source§impl TryFrom<Value> for RuntimeConfigInterface
impl TryFrom<Value> for RuntimeConfigInterface
Source§impl TryFrom<ValueContainer> for RuntimeConfigInterface
impl TryFrom<ValueContainer> for RuntimeConfigInterface
Source§type Error = TryFromDatexValueError
type Error = TryFromDatexValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeConfigInterface
impl !Send for RuntimeConfigInterface
impl !Sync for RuntimeConfigInterface
impl !UnwindSafe for RuntimeConfigInterface
impl Freeze for RuntimeConfigInterface
impl Unpin for RuntimeConfigInterface
impl UnsafeUnpin for RuntimeConfigInterface
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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