forked from lavina/lavina
1
0
Fork 0
lavina/crates/proto/src/well_known.rs

14 lines
270 B
Rust
Raw Normal View History

2023-01-25 12:48:52 +00:00
use crate::prelude::*;
#[derive(Serialize, Deserialize)]
pub struct ServerInfo {
pub name: String,
pub user_api_base_url: String,
pub fedi_api_base_url: String,
}
#[async_trait]
pub trait WellKnown {
async fn well_known(&self) -> Result<ServerInfo>;
}