relm4-store-record 0.1.0-beta.2

Library for buildiong application model.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use reexport::uuid;

use uuid::Uuid;

use crate::TemporaryIdAllocator;

/// Allocator for uuid
#[derive(Debug, Clone, Copy)]
pub struct UuidAllocator{}

impl TemporaryIdAllocator for UuidAllocator {
    type Type = Uuid;

    fn new_id() -> Self::Type {
        Uuid::new_v4()
    }
}