RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }