zinq_schema/string.rs
1/// ## String
2///
3/// a schema that represents data of String type
4pub fn string() -> String {
5 return String::new();
6}
7
8/// ## String
9///
10/// a schema that represents data of String type
11#[derive(Debug, Clone)]
12#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
13pub struct String;
14
15impl String {
16 pub fn new() -> Self {
17 return Self;
18 }
19}
20
21impl crate::Schema for String {
22 fn name(&self) -> &'static str {
23 return "string";
24 }
25}