use std::str::FromStr; use giterated_api::DaemonConnectionPool; use giterated_models::{ model::{instance::Instance, user::User}, operation::ObjectBackend, values::user::DisplayName, }; #[tokio::main] async fn main() -> Result<(), anyhow::Error> { tracing_subscriber::fmt::init(); let pool = DaemonConnectionPool::connect(Instance::from_str("giterated.dev")?).unwrap(); let mut user = pool.get_object::("ambee:giterated.dev").await?; let display_name = user.get::().await?; let repositories = user .repositories(&Instance::from_str("giterated.dev").unwrap()) .await?; Ok(()) }