Skip to main content

yscv_recognize/
snapshot.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct RecognizerSnapshot {
5    pub threshold: f32,
6    pub identities: Vec<IdentitySnapshot>,
7}
8
9#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
10pub struct IdentitySnapshot {
11    pub id: String,
12    pub embedding: Vec<f32>,
13}