validators 0.25.3

This library is designed for validating and modeling user input. The crate includes models, functions, traits, errors, and other dependencies.
Documentation
1
2
3
4
5
6
7
8
9
10
use alloc::string::String;

/// The `json` validator will implement this for its types.
pub trait ToJsonString {
    /// Retrieve this json element as a minified string.
    fn to_minified_json_string(&self) -> String;

    /// Retrieve this json element as a beautified string.
    fn to_beautified_json_string(&self) -> String;
}