pub struct SetBackground { /* private fields */ }
Expand description
Changes the background selected by the user; adds background to the list of installed backgrounds
Implementations§
Source§impl SetBackground
impl SetBackground
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> SetBackgroundBuilder
pub fn background(&self) -> &InputBackground
pub fn type_(&self) -> &BackgroundType
pub fn for_dark_theme(&self) -> bool
Trait Implementations§
Source§impl AsRef<SetBackground> for SetBackground
impl AsRef<SetBackground> for SetBackground
Source§fn as_ref(&self) -> &SetBackground
fn as_ref(&self) -> &SetBackground
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for SetBackground
impl Clone for SetBackground
Source§fn clone(&self) -> SetBackground
fn clone(&self) -> SetBackground
Returns a copy 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 SetBackground
impl Debug for SetBackground
Source§impl Default for SetBackground
impl Default for SetBackground
Source§fn default() -> SetBackground
fn default() -> SetBackground
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SetBackground
impl<'de> Deserialize<'de> for SetBackground
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 SetBackground
impl RefUnwindSafe for SetBackground
impl Send for SetBackground
impl Sync for SetBackground
impl Unpin for SetBackground
impl UnwindSafe for SetBackground
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