Page MenuHomePhorge

structs.rs
No OneTemporary

Size
442 B
Referenced Files
None
Subscribers
None

structs.rs

use rocket::serde::Serialize;
use utoipa::ToSchema;
#[derive(Serialize, ToSchema)]
pub(crate) struct ErrorMessage {
#[schema(example = 404)]
pub(crate) code: u16,
#[schema(example = "Not Found")]
pub(crate) message: &'static str,
}
#[derive(Serialize, ToSchema)]
pub(crate) struct AuthMessage {
#[schema(example = 401)]
pub(crate) code: u16,
#[schema(example = "Unauthorized")]
pub(crate) message: String,
}

File Metadata

Mime Type
text/plain
Expires
Sun, Feb 1, 10:46 AM (4 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
494654
Default Alt Text
structs.rs (442 B)

Event Timeline