ruwebframe 0.1.7

a simple webframe for rust actix-web, based on rudi and rbatis.
Documentation
use std::sync::Mutex;
use displaydoc::Display;
use serde::{Deserialize, Serialize};
use crate::rubase::BaseEntitySingle;
use crate::rubase::get_self::GetSelf;

#[derive(Debug, Display,Clone,Serialize,Deserialize)]
pub struct DiExample {
   pub id: u64,
}

impl BaseEntitySingle for DiExample {} 
impl GetSelf for DiExample {}
impl DiExample {
    pub fn new() -> Self {
        println!(">>> Database::new() 被调用了!");
        Self { id: rand::random() }
    }
    pub fn new_mutex() -> Mutex<Self>  {
        println!(">>> Database::new() 被调用了!");
       Mutex::new (Self { id: rand::random() })
    }
}