wrend/ids/id_default.rs
1use wasm_bindgen::prelude::wasm_bindgen;
2
3use super::{id::Id, id_name::IdName};
4
5/// Default ID that can be used when no id has been specified by the consuming application
6#[wasm_bindgen]
7#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug, Default)]
8pub struct IdDefault;
9
10impl Id for IdDefault {}
11
12impl IdName for IdDefault {
13 fn name(&self) -> String {
14 String::from("id_default")
15 }
16}