hyperlane_app 13.0.3

Hyperlane application module containing core application logic, controllers, services, and middleware components.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

#[skip_serializing_none]
#[derive(Clone, Data, Debug, Default, Deserialize, Serialize, ToSchema)]
pub struct ApiResponse<T>
where
    T: Clone + Default + Serialize,
{
    #[get(type(copy), pub(crate))]
    pub(super) code: i32,
    #[get(pub(crate))]
    pub(super) message: String,
    #[get(pub(crate))]
    pub(super) data: Option<T>,
    #[get(pub(crate))]
    pub(super) timestamp: Option<String>,
}