rust_dynamic 0.49.0

Support for dynamically-typed values in run-time
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::value::{Value, timestamp_ms};
use nanoid::nanoid;

impl Value {
    pub fn regen_id(&mut self) -> Self {
        self.id = nanoid!();
        self.stamp = timestamp_ms();
        self.clone()
    }
}