ruwebframe 0.1.2

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
use displaydoc::Display;
use serde::{Deserialize, Serialize};
use crate::rubase::ruentity;
use crate::rubase::rutils::strutils;

#[derive(Debug, Display, Default, Deserialize, Serialize, Clone)]
pub struct SoftDto {
    pub env: String,
    pub webPrefix: String,
    pub projectName: String, //  mall
    pub logLevel: String,    //  DEBU
    pub author: String,      // leijmdas@163.com
    pub corp: String,        // akunlong
}

impl ruentity::BaseEntity for SoftDto {

}
impl SoftDto {
    pub fn new(
        env: String,
        webPrefix: String,
        projectName: String,
        logLevel: String,
        author: String,
        corp: String,
    ) -> SoftDto {
        Self {
            env,
            webPrefix,
            projectName,
            logLevel,
            author,
            corp,
        }
    }

    pub fn parse_env_var(&mut self)   {
        self.env= strutils::parse_env_var(std::mem::take(&mut self.env));
        self.webPrefix= strutils::parse_env_var(std::mem::take(&mut self.webPrefix));
        self.projectName= strutils::parse_env_var(std::mem::take(&mut self.projectName));
        self.logLevel= strutils::parse_env_var(std::mem::take(&mut self.logLevel));
        self.author= strutils::parse_env_var(std::mem::take(&mut self.author));
        self.corp = strutils::parse_env_var(std::mem::take(&mut self.corp));
    } 
}