#[non_exhaustive]pub struct Preferences {
pub color: ColorChoice,
pub images: ImagesMode,
pub needs_background: bool,
}Available on crate feature
cli only.Expand description
What the user asked for, which detection must respect.
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.color: ColorChoice§images: ImagesMode§needs_background: boolThe theme was not named, so the background decides between dark and light.
Trait Implementations§
Source§impl Clone for Preferences
impl Clone for Preferences
impl Copy for Preferences
Source§impl Debug for Preferences
impl Debug for Preferences
Source§impl Default for Preferences
impl Default for Preferences
impl Eq for Preferences
Source§impl PartialEq for Preferences
impl PartialEq for Preferences
impl StructuralPartialEq for Preferences
Auto Trait Implementations§
impl Forget for Preferences
impl Freeze for Preferences
impl Move for Preferences
impl RefUnwindSafe for Preferences
impl Send for Preferences
impl Sync for Preferences
impl Unpin for Preferences
impl UnsafeUnpin for Preferences
impl UnwindSafe for Preferences
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