mermaid-builder 0.1.2

A Rust library for generating Mermaid diagrams using the builder pattern.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Submodule providing an enumeration of possible errors that can occur in the
//! configuration of diagrams in Mermaid syntax.

use thiserror::Error;

#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Error)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
/// Enum representing errors related to configuration in Mermaid diagrams.
pub enum ConfigError {
    /// The provided diagram title is empty.
    #[error("Configuration title cannot be empty.")]
    EmptyTitle,
}