use arcadedb_rs::{ArcadeDB, Auth, Language, RecordID}; use serde::Deserialize; #[tokio::main] async fn main() -> Result<(), Box> { let arcadedb = ArcadeDB::builder() .auth(Auth::basic("root", "playwithdata")) .build("http://localhost:2480") .await?; let db = arcadedb.db("movies"); #[derive(Deserialize, Debug)] #[allow(dead_code)] struct Movie { #[serde(rename = "@rid")] id: RecordID, title: String, tagline: String, released: i32, } let results = db .query("match (m:Movie) where m.title = $title return m") .language(Language::Cypher) .param("title", "The Matrix") .send::() .await?; println!("Got {:#?}", results); Ok(()) }