croc-sidecar 0.2.2

A wrapper for the Croc binary
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// An enum representing different `croc` code generation strategies.
#[derive(Debug, Default)]
pub enum Code {
    /// The code will be generated automatically by `croc`.
    #[default]
    Generated,
    /// Custom code that `croc` will use.
    Custom(String),
}

impl<S: ToString> From<S> for Code {
    fn from(value: S) -> Self {
        Self::Custom(value.to_string())
    }
}