1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#![doc = include_str!("../README.md")]

#[macro_use]
/// macros module exposing gRPC include macro
mod macros;

pub mod link_service;
pub mod resources;
pub mod simple_service;
pub mod simple_service_linked;

#[cfg(test)]
mod enum_tests;

/// Provide search helpers
pub mod search {
    include!("../includes/search.rs");
}
pub mod prelude;

use prelude::*;
pub use resources::Clients;

#[cfg(feature = "any_resource")]
fn timestamp_schema() -> utoipa::openapi::Object {
    utoipa::openapi::ObjectBuilder::new()
        .schema_type(utoipa::openapi::SchemaType::String)
        .format(Some(utoipa::openapi::SchemaFormat::Custom(
            "date-time".to_string(),
        )))
        .description(Some("Timestamp in RFC3339 format"))
        .build()
}