#[non_exhaustive]pub struct BackgroundTypePattern {
pub document: Document,
pub fill: BackgroundFill,
pub intensity: u8,
pub is_inverted: Option<bool>,
pub is_moving: Option<bool>,
}Expand description
A background that is a PNG or TGV pattern filled with a colour.
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 pattern.
fill: BackgroundFillThe background fill used to combine with the pattern.
intensity: u8Intensity of the pattern when it is shown above the filled background, as a percentage (0–100).
is_inverted: Option<bool>true if the background fill must be applied only to the pattern itself.
All other pixels are black in this case.
is_moving: Option<bool>true if the background moves slightly when the device is tilted.
Trait Implementations§
Source§impl Clone for BackgroundTypePattern
impl Clone for BackgroundTypePattern
Source§fn clone(&self) -> BackgroundTypePattern
fn clone(&self) -> BackgroundTypePattern
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 BackgroundTypePattern
impl Debug for BackgroundTypePattern
Source§impl<'de> Deserialize<'de> for BackgroundTypePattern
impl<'de> Deserialize<'de> for BackgroundTypePattern
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 BackgroundTypePattern
impl RefUnwindSafe for BackgroundTypePattern
impl Send for BackgroundTypePattern
impl Sync for BackgroundTypePattern
impl Unpin for BackgroundTypePattern
impl UnsafeUnpin for BackgroundTypePattern
impl UnwindSafe for BackgroundTypePattern
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