pub struct SettingPatch {
pub key: String,
pub value: Value,
}Expand description
One change requested by settings.set, addressed by field key. The
value is a raw JSON scalar / array / null (null clears the field).
Fields§
§key: String§value: ValueTrait Implementations§
Source§impl Clone for SettingPatch
impl Clone for SettingPatch
Source§fn clone(&self) -> SettingPatch
fn clone(&self) -> SettingPatch
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 Debug for SettingPatch
impl Debug for SettingPatch
Source§impl<'de> Deserialize<'de> for SettingPatch
impl<'de> Deserialize<'de> for SettingPatch
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 SettingPatch
impl RefUnwindSafe for SettingPatch
impl Send for SettingPatch
impl Sync for SettingPatch
impl Unpin for SettingPatch
impl UnsafeUnpin for SettingPatch
impl UnwindSafe for SettingPatch
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