pub struct ColumnLine {
pub line_type: BorderLineType,
pub width: HwpUnit,
pub color: Color,
}Expand description
Separator line drawn between columns.
Maps to the HWPX <hp:colLine> child of <hp:colPr> (OWPML
KS X 6101 §10.7.1.2). Present only when the document draws a visible
divider between columns; ColumnSettings::col_line is None for the
common no-separator case, which keeps <hp:colPr> self-closing.
OWPML defaults: SOLID, 0.12 mm, #000000 (see Default).
§Examples
use hwpforge_core::column::ColumnLine;
use hwpforge_foundation::{BorderLineType, Color, HwpUnit};
let line = ColumnLine {
line_type: BorderLineType::DoubleSlim,
width: HwpUnit::from_mm(0.7).unwrap(),
color: Color::from_rgb(0x3A, 0x3C, 0x84),
};
assert_eq!(line.line_type, BorderLineType::DoubleSlim);Fields§
§line_type: BorderLineTypeSeparator line style. HWPX type attribute (e.g. SOLID, DOUBLE_SLIM).
width: HwpUnitSeparator line thickness. HWPX width attribute, emitted in millimetres
(e.g. "0.7 mm").
color: ColorSeparator line color. HWPX color attribute (e.g. #3A3C84).
Trait Implementations§
Source§impl Clone for ColumnLine
impl Clone for ColumnLine
Source§fn clone(&self) -> ColumnLine
fn clone(&self) -> ColumnLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColumnLine
Source§impl Debug for ColumnLine
impl Debug for ColumnLine
Source§impl<'de> Deserialize<'de> for ColumnLine
impl<'de> Deserialize<'de> for ColumnLine
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
Source§impl JsonSchema for ColumnLine
impl JsonSchema for ColumnLine
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ColumnLine
impl PartialEq for ColumnLine
Source§impl Serialize for ColumnLine
impl Serialize for ColumnLine
impl StructuralPartialEq for ColumnLine
Auto Trait Implementations§
impl Freeze for ColumnLine
impl RefUnwindSafe for ColumnLine
impl Send for ColumnLine
impl Sync for ColumnLine
impl Unpin for ColumnLine
impl UnsafeUnpin for ColumnLine
impl UnwindSafe for ColumnLine
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