pub struct Caption {
pub text: String,
pub tone: Tone,
pub small: bool,
pub mono: bool,
pub overline: bool,
pub strong: bool,
pub medium: bool,
pub primary: bool,
}Expand description
A Widget::Caption: words in the panel’s text size, or the small
one, in a tone (Neutral is the panel’s secondary text, Muted
dimmer still), or in the primary text colour.
Fields§
§text: String§tone: Tone§small: bool§mono: bool§overline: boolA small heading over what follows, in small capitals.
strong: boolIn the semibold face and the panel’s primary text colour, over the tone: the name of what the widgets after it edit.
medium: boolIn the medium face: a heading over the rows under it.
primary: boolIn the primary text colour, in place of the tone’s: a value read.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Caption
impl<'de> Deserialize<'de> for Caption
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 StructuralPartialEq for Caption
Auto Trait Implementations§
impl Forget for Caption
impl Freeze for Caption
impl Move for Caption
impl RefUnwindSafe for Caption
impl Send for Caption
impl Sync for Caption
impl Unpin for Caption
impl UnsafeUnpin for Caption
impl UnwindSafe for Caption
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