maestro-rust-sdk 1.0.0

Rust SDK for the Maestro Dapp Platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::maestro::Maestro;
use crate::models::common::BasicResponse;
use std::error::Error;

impl Maestro {
    pub async fn resolve_ada_handle(&self, handle: &str) -> Result<BasicResponse, Box<dyn Error>> {
        let url = format!("/ecosystem/adahandle/{}", handle);
        let resp = self.get(&url).await?;

        let ada_handle = serde_json::from_str(&resp).map_err(|e| Box::new(e) as Box<dyn Error>)?;
        Ok(ada_handle)
    }
}