pub struct NorthConfig<T>where
T: Clone + DeserializeOwned,{
pub value: T,
}Expand description
§NorthConfig
Struct representing a configuration value of type T.
This struct is used as a wrapper around the configuration value to provide additional functionality and
make it easier to work with.
§Type parameters
T: Represents the type of the configuration value, which must implement theCloneandDeserializeOwnedtraits.
§Fields
value: The actual configuration value of typeT. It can be accessed and modified directly.
Fields§
§value: TImplementations§
Source§impl<T: Clone + DeserializeOwned> NorthConfig<T>
impl<T: Clone + DeserializeOwned> NorthConfig<T>
Trait Implementations§
Source§impl<T> Clone for NorthConfig<T>
impl<T> Clone for NorthConfig<T>
Source§fn clone(&self) -> NorthConfig<T>
fn clone(&self) -> NorthConfig<T>
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<T> Debug for NorthConfig<T>
impl<T> Debug for NorthConfig<T>
Source§impl<T> Default for NorthConfig<T>
impl<T> Default for NorthConfig<T>
Source§fn default() -> NorthConfig<T>
fn default() -> NorthConfig<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for NorthConfig<T>where
T: Freeze,
impl<T> RefUnwindSafe for NorthConfig<T>where
T: RefUnwindSafe,
impl<T> Send for NorthConfig<T>where
T: Send,
impl<T> Sync for NorthConfig<T>where
T: Sync,
impl<T> Unpin for NorthConfig<T>where
T: Unpin,
impl<T> UnsafeUnpin for NorthConfig<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NorthConfig<T>where
T: UnwindSafe,
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