pub struct ArrowStyle {
pub line_color: Option<UmlColor>,
pub line_thickness: Option<ThicknessStyle>,
pub text_color: Option<UmlColor>,
}Expand description
Defines the visual style of an arrow in a PlantUML diagram.
Fields§
§line_color: Option<UmlColor>Color of the arrow line.
line_thickness: Option<ThicknessStyle>Thickness and style of the arrow line.
text_color: Option<UmlColor>Color of the arrow text/label.
Implementations§
Source§impl ArrowStyle
impl ArrowStyle
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ArrowStyle initialized with default values.
Sourcepub fn with_line_color(self, color: UmlColor) -> Self
pub fn with_line_color(self, color: UmlColor) -> Self
Sets the line color and returns the modified ArrowStyle.
Sourcepub fn with_line_thickness(self, thickness: ThicknessStyle) -> Self
pub fn with_line_thickness(self, thickness: ThicknessStyle) -> Self
Sets the line thickness and returns the modified ArrowStyle.
Sourcepub fn with_text_color(self, color: UmlColor) -> Self
pub fn with_text_color(self, color: UmlColor) -> Self
Sets the text color and returns the modified ArrowStyle.
Sourcepub fn as_plantuml(&self) -> String
pub fn as_plantuml(&self) -> String
Converts the arrow style into a PlantUML-compatible style string.
§Returns
A String representing the arrow style in PlantUML syntax.
Trait Implementations§
Source§impl Clone for ArrowStyle
impl Clone for ArrowStyle
Source§fn clone(&self) -> ArrowStyle
fn clone(&self) -> ArrowStyle
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 ArrowStyle
impl Debug for ArrowStyle
Source§impl Default for ArrowStyle
impl Default for ArrowStyle
Source§impl<'de> Deserialize<'de> for ArrowStyle
impl<'de> Deserialize<'de> for ArrowStyle
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 PartialEq for ArrowStyle
impl PartialEq for ArrowStyle
Source§impl Serialize for ArrowStyle
impl Serialize for ArrowStyle
impl StructuralPartialEq for ArrowStyle
Auto Trait Implementations§
impl Freeze for ArrowStyle
impl RefUnwindSafe for ArrowStyle
impl Send for ArrowStyle
impl Sync for ArrowStyle
impl Unpin for ArrowStyle
impl UnsafeUnpin for ArrowStyle
impl UnwindSafe for ArrowStyle
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