pub struct NameWithConfig {
pub name: String,
pub config: Option<Value<'static>>,
}Expand description
Named key value pair with optional config
Fields§
§name: StringName
config: Option<Value<'static>>Config (optional)
Trait Implementations§
Source§impl Clone for NameWithConfig
impl Clone for NameWithConfig
Source§fn clone(&self) -> NameWithConfig
fn clone(&self) -> NameWithConfig
Returns a duplicate 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 NameWithConfig
impl Debug for NameWithConfig
Source§impl Default for NameWithConfig
impl Default for NameWithConfig
Source§fn default() -> NameWithConfig
fn default() -> NameWithConfig
Returns the “default value” for a type. Read more
Source§impl<'v> Deserialize<'v> for NameWithConfig
impl<'v> Deserialize<'v> for NameWithConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'v>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'v>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&String> for NameWithConfig
impl From<&String> for NameWithConfig
Source§impl From<&str> for NameWithConfig
impl From<&str> for NameWithConfig
Source§impl From<String> for NameWithConfig
impl From<String> for NameWithConfig
Auto Trait Implementations§
impl Freeze for NameWithConfig
impl RefUnwindSafe for NameWithConfig
impl Send for NameWithConfig
impl Sync for NameWithConfig
impl Unpin for NameWithConfig
impl UnwindSafe for NameWithConfig
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