vika 0.1.2

A Rust API for Vika.
Documentation
use serde::{Deserialize, Serialize};

#[derive(Debug, Default, Serialize, Deserialize)]
pub struct ResponseSchema<Data> {
    ///The global status value. If it is false, it indicates that a business error or interface call error has occurred.
    pub success: bool,
    ///Business status code, 200 indicates that the business request is successful.
    pub code: usize,
    ///Return information, and return error information when executing an error.
    pub message: String,
    ///the response data
    pub data: Option<Data>,
}

#[derive(Debug, Default, Serialize, Deserialize)]
pub struct BaseResponseSchema {
    ///The global status value. If it is false, it indicates that a business error or interface call error has occurred.
    pub success: bool,
    ///Business status code, 200 indicates that the business request is successful.
    pub code: usize,
    ///Return information, and return error information when executing an error.
    pub message: String,
}