walrus_rs 0.1.0

A Rust client for Walrus API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;
use reqwest::StatusCode;

#[derive(Error, Debug)]
pub enum WalrusError {
    #[error("HTTP request failed: {0}")]
    HttpRequest(#[from] reqwest::Error),
    #[error("Invalid URL: {0}")]
    InvalidUrl(String),
    #[error("API error: {0} - {1}")]
    ApiError(StatusCode, String),
    #[error("Failed to parse response: {0}")]
    ParseError(String),
    #[error("Invalid parameter: {0}")]
    InvalidParameter(String),
    #[error("Unknown error: {0}")]
    Unknown(String),
}