pub struct VisualizationTheme {
pub name: String,
pub background_color: String,
pub node: NodeTheme,
pub edge: EdgeTheme,
pub text: TextTheme,
pub highlight: HighlightTheme,
}Expand description
Visualization theme configuration.
Fields§
§name: StringThe name of the theme.
background_color: StringThe background color of the visualization (hex string).
node: NodeThemeThe style configuration for nodes.
edge: EdgeThemeThe style configuration for edges.
text: TextThemeThe style configuration for text.
highlight: HighlightThemeThe style configuration for highlighted states.
Implementations§
Source§impl VisualizationTheme
impl VisualizationTheme
Sourcepub fn to_render_config(&self) -> RenderConfig
pub fn to_render_config(&self) -> RenderConfig
Converts to render configuration
Trait Implementations§
Source§impl Clone for VisualizationTheme
impl Clone for VisualizationTheme
Source§fn clone(&self) -> VisualizationTheme
fn clone(&self) -> VisualizationTheme
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 VisualizationTheme
impl Debug for VisualizationTheme
Source§impl Default for VisualizationTheme
impl Default for VisualizationTheme
Source§impl<'de> Deserialize<'de> for VisualizationTheme
impl<'de> Deserialize<'de> for VisualizationTheme
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 VisualizationTheme
impl RefUnwindSafe for VisualizationTheme
impl Send for VisualizationTheme
impl Sync for VisualizationTheme
impl Unpin for VisualizationTheme
impl UnsafeUnpin for VisualizationTheme
impl UnwindSafe for VisualizationTheme
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