1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use axum::Router; use crate::types::ExtensionMeta; pub trait ApiExtensionTyped: ExtensionMeta { fn base_path(&self) -> &'static str; fn requires_auth(&self) -> bool { true } } pub trait ApiExtensionTypedDyn: ApiExtensionTyped { fn build_router(&self) -> Router; }