Struct device_connector::ElementConf
pub struct ElementConf(_);Expand description
General element configuration type
Implementations§
§impl ElementConf
impl ElementConf
pub fn to_conf<T>(&self) -> Result<T, ElementConfDeserializeError>where
T: DeserializeOwned,
pub fn to_conf<T>(&self) -> Result<T, ElementConfDeserializeError>where T: DeserializeOwned,
Deserialize to specific configuration type
pub fn from_default_format(
s: &str
) -> Result<ElementConf, ElementConfDeserializeError>
pub fn from_default_format( s: &str ) -> Result<ElementConf, ElementConfDeserializeError>
Deserialize s as the default format.
Trait Implementations§
§impl Clone for ElementConf
impl Clone for ElementConf
§fn clone(&self) -> ElementConf
fn clone(&self) -> ElementConf
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§impl Debug for ElementConf
impl Debug for ElementConf
§impl Default for ElementConf
impl Default for ElementConf
§fn default() -> ElementConf
fn default() -> ElementConf
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ElementConf
impl<'de> Deserialize<'de> for ElementConf
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ElementConf, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<ElementConf, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<ElementConf> for ElementConf
impl PartialEq<ElementConf> for ElementConf
§fn eq(&self, other: &ElementConf) -> bool
fn eq(&self, other: &ElementConf) -> bool
This method tests for
self and other values to be equal, and is used
by ==.§impl Serialize for ElementConf
impl Serialize for ElementConf
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ElementConf
impl StructuralEq for ElementConf
impl StructuralPartialEq for ElementConf
Auto Trait Implementations§
impl RefUnwindSafe for ElementConf
impl Send for ElementConf
impl Sync for ElementConf
impl Unpin for ElementConf
impl UnwindSafe for ElementConf
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.