pub struct Appearance {
pub lighting: Lighting,
pub sans: Face,
pub mono: Face,
pub sans_stack: String,
pub mono_stack: String,
pub body_px: Option<u32>,
pub density: Density,
pub chroma: Chroma,
pub motion: Motion,
pub glass: Option<Glass>,
pub blend_percent: Option<u32>,
}Expand description
How the pages look.
Fields§
§lighting: Lighting§sans: Face§mono: Face§sans_stack: StringThe families this person wrote out, used when the matching
Face is Face::Custom and empty otherwise.
mono_stack: StringSee sans_stack.
body_px: Option<u32>The size of a line of body text in pixels, between
BODY_PX_MIN and BODY_PX_MAX. Absent means the person
stated no size and the stylesheet’s own is drawn — which is a
different statement from any number this build could pick for
them.
density: Density§chroma: Chroma§motion: Motion§glass: Option<Glass>Absent means the person stated no opinion and the page draws its own posture.
blend_percent: Option<u32>The world layer’s opacity in the blend tier, in percent. Absent means the stylesheet’s own is drawn. The domain the slider offers is the page’s to state, because the page alone draws it; a value outside it is read back as absent there.
Trait Implementations§
Source§impl Clone for Appearance
impl Clone for Appearance
Source§impl Debug for Appearance
impl Debug for Appearance
Source§impl Default for Appearance
impl Default for Appearance
Source§impl<'de> Deserialize<'de> for Appearance
impl<'de> Deserialize<'de> for Appearance
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
impl Eq for Appearance
Source§impl PartialEq for Appearance
impl PartialEq for Appearance
Source§impl Serialize for Appearance
impl Serialize for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnsafeUnpin for Appearance
impl UnwindSafe for Appearance
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