pub struct ConfigProperty {
pub name: String,
pub properties: Option<Vec<(String, String)>>,
}
Expand description
Configuration properties
Fields§
§name: String
§properties: Option<Vec<(String, String)>>
Trait Implementations§
Source§impl Clone for ConfigProperty
impl Clone for ConfigProperty
Source§fn clone(&self) -> ConfigProperty
fn clone(&self) -> ConfigProperty
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 moreSource§impl Debug for ConfigProperty
impl Debug for ConfigProperty
Source§impl<R> Decode<R> for ConfigProperty
impl<R> Decode<R> for ConfigProperty
Source§type ListDecoder = ListDecoder<<ConfigProperty as Decode<R>>::Decoder, R>
type ListDecoder = ListDecoder<<ConfigProperty as Decode<R>>::Decoder, R>
Decoder used to decode lists of value
Source§impl<'de> Deserialize<'de> for ConfigProperty
impl<'de> Deserialize<'de> for ConfigProperty
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
Source§impl<W> Encode<W> for &ConfigProperty
impl<W> Encode<W> for &ConfigProperty
Source§fn encode(
self,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Convenience function for encoding a value
Source§fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Encode an iterator of owned values
Source§fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
Encode an iterator of value references
Source§fn encode_list_own(
items: Vec<Self>,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Encode a list of owned values
Source§impl<W> Encode<W> for ConfigProperty
impl<W> Encode<W> for ConfigProperty
Source§fn encode(
self,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode( self, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Convenience function for encoding a value
Source§fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
fn encode_iter_own<I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>where
I: IntoIterator<Item = Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Encode an iterator of owned values
Source§fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
fn encode_iter_ref<'a, I>(
items: I,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<&'a Self>>::Error>where
I: IntoIterator<Item = &'a Self>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
T: Index<T> + Send + Sync + 'static,
Self::Encoder: Encoder<&'a Self>,
Encode an iterator of value references
Source§fn encode_list_own(
items: Vec<Self>,
enc: &mut Self::Encoder,
dst: &mut BytesMut,
) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
fn encode_list_own( items: Vec<Self>, enc: &mut Self::Encoder, dst: &mut BytesMut, ) -> Result<Option<Box<dyn FnOnce(T, Vec<usize>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Send>>, <Self::Encoder as Encoder<Self>>::Error>
Encode a list of owned values
Source§impl From<ConfigProperty> for ConfigProperty
impl From<ConfigProperty> for ConfigProperty
Source§fn from(property: ConfigProperty) -> Self
fn from(property: ConfigProperty) -> Self
Converts to this type from the input type.
Source§impl From<ConfigProperty> for ConfigProperty
impl From<ConfigProperty> for ConfigProperty
Source§fn from(property: ConfigProperty) -> Self
fn from(property: ConfigProperty) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigProperty
impl RefUnwindSafe for ConfigProperty
impl Send for ConfigProperty
impl Sync for ConfigProperty
impl Unpin for ConfigProperty
impl UnwindSafe for ConfigProperty
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