pub struct ConfigPurpose(Purpose);Expand description
A thin wrapper around Purpose to allow for config specific serialization.
Tuple Fields§
§0: PurposeTrait Implementations§
Source§impl Clone for ConfigPurpose
impl Clone for ConfigPurpose
Source§fn clone(&self) -> ConfigPurpose
fn clone(&self) -> ConfigPurpose
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 ConfigPurpose
impl Debug for ConfigPurpose
Source§impl<'de> Deserialize<'de> for ConfigPurpose
impl<'de> Deserialize<'de> for ConfigPurpose
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 From<ConfigPurpose> for String
impl From<ConfigPurpose> for String
Source§fn from(value: ConfigPurpose) -> Self
fn from(value: ConfigPurpose) -> Self
Converts to this type from the input type.
Source§impl From<Purpose> for ConfigPurpose
impl From<Purpose> for ConfigPurpose
Source§impl FromStr for ConfigPurpose
impl FromStr for ConfigPurpose
Source§impl Serialize for ConfigPurpose
impl Serialize for ConfigPurpose
Auto Trait Implementations§
impl Freeze for ConfigPurpose
impl RefUnwindSafe for ConfigPurpose
impl Send for ConfigPurpose
impl Sync for ConfigPurpose
impl Unpin for ConfigPurpose
impl UnwindSafe for ConfigPurpose
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