pub struct BorderSide {
pub line_type: BorderLineType,
pub width: Option<HwpUnit>,
pub color: Option<Color>,
}Expand description
Border configuration for one side (top/left/right/bottom).
§Examples
use hwpforge_blueprint::border_fill::BorderSide;
use hwpforge_foundation::{BorderLineType, Color, HwpUnit};
let side = BorderSide {
line_type: BorderLineType::Solid,
width: Some(HwpUnit::from_pt(1.0).unwrap()),
color: Some(Color::BLACK),
};Fields§
§line_type: BorderLineTypeBorder line type.
width: Option<HwpUnit>Border line width.
color: Option<Color>Border color.
Trait Implementations§
Source§impl Clone for BorderSide
impl Clone for BorderSide
Source§fn clone(&self) -> BorderSide
fn clone(&self) -> BorderSide
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BorderSide
impl Debug for BorderSide
Source§impl Default for BorderSide
impl Default for BorderSide
Source§impl<'de> Deserialize<'de> for BorderSide
impl<'de> Deserialize<'de> for BorderSide
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 BorderSide
impl JsonSchema for BorderSide
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 BorderSide
impl PartialEq for BorderSide
Source§impl Serialize for BorderSide
impl Serialize for BorderSide
impl Copy for BorderSide
impl StructuralPartialEq for BorderSide
Auto Trait Implementations§
impl Freeze for BorderSide
impl RefUnwindSafe for BorderSide
impl Send for BorderSide
impl Sync for BorderSide
impl Unpin for BorderSide
impl UnwindSafe for BorderSide
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