Files
bakalari-types/src/endpoints.rs
T

20 lines
404 B
Rust
Raw Normal View History

2026-10-28 22:37:05 +01:00
use std::marker::PhantomData;
pub enum Endpoint<Response, Request> {
Get {
url: &'static str,
auth: bool,
_types: PhantomData<fn() -> (Response, Request)>,
},
Post {
url: &'static str,
auth: bool,
content_type: ContentType,
_types: PhantomData<fn() -> (Response, Request)>,
},
}
pub enum ContentType {
Urlencoded,
Json,
}