rocal-cli 0.2.3

CLI tool for Rocal - Full-Stack WASM framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::Serialize;

#[derive(Serialize)]
pub struct CreatePaymentLink {
    plan: String,
}

impl CreatePaymentLink {
    pub fn new(plan: &str) -> Self {
        Self {
            plan: plan.to_string(),
        }
    }
}