#[non_exhaustive]pub struct BackgroundTypeWallpaper {
pub document: Document,
pub dark_theme_dimming: u8,
pub is_blurred: Option<bool>,
pub is_moving: Option<bool>,
}Expand description
A background that is a wallpaper image in JPEG format.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.document: DocumentDocument with the wallpaper.
dark_theme_dimming: u8Dimming of the background in dark themes, as a percentage (0–100).
is_blurred: Option<bool>true if the wallpaper is downscaled to fit in a 450×450 square and
then box-blurred with a radius of 12.
is_moving: Option<bool>true if the background moves slightly when the device is tilted.
Trait Implementations§
Source§impl Clone for BackgroundTypeWallpaper
impl Clone for BackgroundTypeWallpaper
Source§fn clone(&self) -> BackgroundTypeWallpaper
fn clone(&self) -> BackgroundTypeWallpaper
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 BackgroundTypeWallpaper
impl Debug for BackgroundTypeWallpaper
Source§impl<'de> Deserialize<'de> for BackgroundTypeWallpaper
impl<'de> Deserialize<'de> for BackgroundTypeWallpaper
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 BackgroundTypeWallpaper
impl RefUnwindSafe for BackgroundTypeWallpaper
impl Send for BackgroundTypeWallpaper
impl Sync for BackgroundTypeWallpaper
impl Unpin for BackgroundTypeWallpaper
impl UnsafeUnpin for BackgroundTypeWallpaper
impl UnwindSafe for BackgroundTypeWallpaper
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