pub struct PrefsContext {
pub custom: HashMap<String, String>,
}Expand description
User preferences context for scripts.
Fields§
§custom: HashMap<String, String>Custom preferences map.
Trait Implementations§
Source§impl Clone for PrefsContext
impl Clone for PrefsContext
Source§fn clone(&self) -> PrefsContext
fn clone(&self) -> PrefsContext
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 PrefsContext
impl Debug for PrefsContext
Source§impl Default for PrefsContext
impl Default for PrefsContext
Source§fn default() -> PrefsContext
fn default() -> PrefsContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrefsContext
impl<'de> Deserialize<'de> for PrefsContext
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
Auto Trait Implementations§
impl Freeze for PrefsContext
impl RefUnwindSafe for PrefsContext
impl Send for PrefsContext
impl Sync for PrefsContext
impl Unpin for PrefsContext
impl UnwindSafe for PrefsContext
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