pinata-sdk 1.1.0

Rust SDK for the Pinata IPFS platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Internal structures and logic specific to Pinata API

use serde::Deserialize;

#[derive(Deserialize)]
/// Error response structure from pinata
pub(crate) struct PinataApiError {
  error: String
}

impl PinataApiError {
    pub fn message(&self) -> String {
      self.error.clone()
    }
}