pub enum BackgroundFill {
Solid(BackgroundFillSolid),
Gradient(BackgroundFillGradient),
FreeformGradient(BackgroundFillFreeformGradient),
}Expand description
How a chat background is filled with colour.
Variants§
Solid(BackgroundFillSolid)
A single colour.
Gradient(BackgroundFillGradient)
A two-colour gradient.
FreeformGradient(BackgroundFillFreeformGradient)
A freeform gradient rotating between three or four colours.
Trait Implementations§
Source§impl Clone for BackgroundFill
impl Clone for BackgroundFill
Source§fn clone(&self) -> BackgroundFill
fn clone(&self) -> BackgroundFill
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 BackgroundFill
impl Debug for BackgroundFill
Source§impl<'de> Deserialize<'de> for BackgroundFill
impl<'de> Deserialize<'de> for BackgroundFill
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 BackgroundFill
impl RefUnwindSafe for BackgroundFill
impl Send for BackgroundFill
impl Sync for BackgroundFill
impl Unpin for BackgroundFill
impl UnsafeUnpin for BackgroundFill
impl UnwindSafe for BackgroundFill
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