ruwebframe 0.1.8

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

#[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 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 = str_utils::parse_env_var(std::mem::take(&mut self.env));
        self.webPrefix = str_utils::parse_env_var(std::mem::take(&mut self.webPrefix));
        self.projectName = str_utils::parse_env_var(std::mem::take(&mut self.projectName));
        self.logLevel = str_utils::parse_env_var(std::mem::take(&mut self.logLevel));
        self.author = str_utils::parse_env_var(std::mem::take(&mut self.author));
        self.corp = str_utils::parse_env_var(std::mem::take(&mut self.corp));
    }
}