pub struct RenderConfig {Show 15 fields
pub canvas_width: f64,
pub canvas_height: f64,
pub background_color: String,
pub node_fill_color: String,
pub node_stroke_color: String,
pub node_stroke_width: f64,
pub edge_color: String,
pub edge_width: f64,
pub text_color: String,
pub text_size: f64,
pub font_family: String,
pub padding: f64,
pub show_labels: bool,
pub show_arrows: bool,
pub arrow_size: f64,
}Expand description
Rendering configuration
Fields§
§canvas_width: f64§canvas_height: f64§background_color: String§node_fill_color: String§node_stroke_color: String§node_stroke_width: f64§edge_color: String§edge_width: f64§text_color: String§text_size: f64§font_family: String§padding: f64§show_labels: bool§show_arrows: bool§arrow_size: f64Trait Implementations§
Source§impl Clone for RenderConfig
impl Clone for RenderConfig
Source§fn clone(&self) -> RenderConfig
fn clone(&self) -> RenderConfig
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 RenderConfig
impl Debug for RenderConfig
Source§impl Default for RenderConfig
impl Default for RenderConfig
Source§impl<'de> Deserialize<'de> for RenderConfig
impl<'de> Deserialize<'de> for RenderConfig
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
Auto Trait Implementations§
impl Freeze for RenderConfig
impl RefUnwindSafe for RenderConfig
impl Send for RenderConfig
impl Sync for RenderConfig
impl Unpin for RenderConfig
impl UnwindSafe for RenderConfig
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