payabli_api 0.0.612

Rust SDK for payabli_api generated by Fern
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum Environment {
    #[serde(rename = "sandbox")]
    Sandbox,
    #[serde(rename = "production")]
    Production,
}
impl Environment {
    pub fn url(&self) -> &'static str {
        match self {
            Self::Sandbox => "https://api-sandbox.payabli.com/api",
            Self::Production => "https://api.payabli.com/api",
        }
    }
}
impl Default for Environment {
    fn default() -> Self {
        Self::Sandbox
    }
}