dodopayments_rust 2.2.1

Rust SDK for Dodo Payments API
Documentation
1
2
3
4
5
6
7
8
9
use serde::Serialize;

pub fn to_json<T: Serialize>(value: &T) -> Result<String, serde_json::Error> {
    serde_json::to_string(value)
}

pub fn to_pretty_json<T: Serialize>(value: &T) -> Result<String, serde_json::Error> {
    serde_json::to_string_pretty(value)
}