pub struct StyleText {
pub bold: bool,
pub code: bool,
pub heading: Heading,
pub hyperlink: String,
pub italics: bool,
pub listing: Listing,
pub quote: bool,
pub small: bool,
pub strikethrough: bool,
pub underline: bool,
}
Expand description
The configuration of the text element.
Fields
bold: bool
Should the text be bold.
code: bool
Should the text be code-style.
heading: Heading
The heading level of the text.
hyperlink: String
The hyperlink the text links to.
italics: bool
Should the text be italics.
listing: Listing
Whether the text is within an ordered/unordered list.
quote: bool
Should the text be quote-style.
small: bool
Should the text be small.
strikethrough: bool
Should the text be strikethroughed.
underline: bool
Should the text be underlined.
Implementations
sourceimpl StyleText
impl StyleText
pub fn new() -> Self
pub fn with_bold(self) -> Self
pub fn with_code(self) -> Self
pub fn with_heading(self, heading: Heading) -> Self
pub fn with_hyperlink(self, hyperlink: String) -> Self
pub fn with_italics(self) -> Self
pub fn with_listing(self, listing: Listing) -> Self
pub fn with_quote(self) -> Self
pub fn with_small(self) -> Self
pub fn with_strikethrough(self) -> Self
pub fn with_underline(self) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StyleText
impl Send for StyleText
impl Sync for StyleText
impl Unpin for StyleText
impl UnwindSafe for StyleText
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more