use std::str::FromStr; use giterated_api::DaemonConnectionPool; use giterated_models::{ instance::Instance, object_backend::ObjectBackend, user::{DisplayName, User}, }; #[tokio::main] async fn main() -> Result<(), anyhow::Error> { tracing_subscriber::fmt::init(); let pool = DaemonConnectionPool::connect_other( Instance::from_str("giterated.dev")?, ("127.0.0.1:1111").parse().unwrap(), ) .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(()) }