pub struct TemplateOptions {
pub node_label_template: Option<String>,
pub node_tooltip_template: Option<String>,
pub edge_label_template: Option<String>,
pub edge_tooltip_template: Option<String>,
}Expand description
Options for Template creation.
Internally, Template uses TinyTemplate
for templating, which allows formatting using the {...} syntax.
§Node template values
short: Short name of the node.extra: Extra information of the node.full: Full name of the node.size: Size of the node in bytes.size_binary: Size of the node in binary format (e.g., “1.0 KiB”).size_decimal: Size of the node in decimal format (e.g., “1.0 kB”).scheme: Coloring scheme used (if any).value: Value used for coloring (if any).value_binary: Value used for coloring in binary format (if any).value_decimal: Value used for coloring in decimal format (if any).features: Features of the node.
§Edge template values
source: Short name of the source node.target: Short name of the target node.features: Features of the edge.
Fields§
§node_label_template: Option<String>§node_tooltip_template: Option<String>§edge_label_template: Option<String>§edge_tooltip_template: Option<String>Trait Implementations§
Source§impl Debug for TemplateOptions
impl Debug for TemplateOptions
Source§impl Default for TemplateOptions
impl Default for TemplateOptions
Source§fn default() -> TemplateOptions
fn default() -> TemplateOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemplateOptions
impl RefUnwindSafe for TemplateOptions
impl Send for TemplateOptions
impl Sync for TemplateOptions
impl Unpin for TemplateOptions
impl UnwindSafe for TemplateOptions
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