ruwebframe 0.1.7

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};
use crate::rubase::rutils::str_utils;

#[derive(Debug, Clone, Default,Serialize, Deserialize)]
pub struct EtcdDto {
    url: String
}

impl EtcdDto {
    pub fn new() -> Self {
        Self::default()
    }
    pub fn parse_env_var(&mut self)   {
        self.url= str_utils::parse_env_var(std::mem::take(&mut self.url));

    }
}