RustRover cargo-generate template: Axum + Vue 3 + TypeScript + Tailwind + sqlx
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

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