Skip to main content

zinq_schema/
any.rs

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