RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

health.rs 298 B

1234567891011121314
  1. use serde::Serialize;
  2. use utoipa::ToSchema;
  3. #[derive(Debug, Serialize, ToSchema)]
  4. pub struct HealthResponse {
  5. pub status: &'static str,
  6. pub service: String,
  7. }
  8. #[derive(Debug, Serialize, ToSchema)]
  9. pub struct ReadyResponse {
  10. pub status: &'static str,
  11. pub database: &'static str,
  12. }