pub struct Auto {
pub mode: Option<AutoModes>,
pub number: Option<Number>,
pub direction: Option<Direction>,
pub palette: Option<Vec<Color>>,
}Fields§
§mode: Option<AutoModes>The method to use for determining the solid or gradient color(s) to apply.
Default: AutoModes::Border
number: Option<Number>Relevant only when setting mode to one of the ‘gradient’ options. The number of predominant colors to select.
Default: Number::Two
direction: Option<Direction>Relevant only when setting mode to one of the ‘gradient’ options and when 2 colors are selected for the number
option. Specifies the direction to blend the 2 colors together. (If 4 colors are selected, each gets
interpolated between the four corners and this parameter is ignored.)
Default: Direction::Horizontal
palette: Option<Vec<Color>>The palette of colors to use in the border.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Auto
impl RefUnwindSafe for Auto
impl Send for Auto
impl Sync for Auto
impl Unpin for Auto
impl UnsafeUnpin for Auto
impl UnwindSafe for Auto
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.