Struct docx_rust::formatting::Underline
source · pub struct Underline<'a> {
pub color: Option<Cow<'a, str>>,
pub val: Option<UnderlineStyle>,
}
Expand description
Underline
use docx_rust::formatting::*;
let udl = Underline::from("00ff00");
let udl = Underline::from(String::from("ff0000"));
let udl = Underline::from(("00ff00", UnderlineStyle::Dash));
let udl = Underline::from((String::from("ff0000"), UnderlineStyle::DotDash));
Fields§
§color: Option<Cow<'a, str>>
§val: Option<UnderlineStyle>
Trait Implementations§
source§impl<'a> From<(&'a str, UnderlineStyle)> for Underline<'a>
impl<'a> From<(&'a str, UnderlineStyle)> for Underline<'a>
source§fn from(val: (&'a str, UnderlineStyle)) -> Self
fn from(val: (&'a str, UnderlineStyle)) -> Self
Converts to this type from the input type.
source§impl From<(String, UnderlineStyle)> for Underline<'_>
impl From<(String, UnderlineStyle)> for Underline<'_>
source§fn from(val: (String, UnderlineStyle)) -> Self
fn from(val: (String, UnderlineStyle)) -> Self
Converts to this type from the input type.
source§impl From<UnderlineStyle> for Underline<'_>
impl From<UnderlineStyle> for Underline<'_>
source§fn from(val: UnderlineStyle) -> Self
fn from(val: UnderlineStyle) -> Self
Converts to this type from the input type.