You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
358 B
23 lines
358 B
use serde::{Serialize, Deserialize};
|
|
|
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
|
pub struct TextBox {
|
|
pub id: u32,
|
|
pub hint: String,
|
|
pub confidence: u32,
|
|
pub width: u32,
|
|
pub height: u32,
|
|
pub x: i32,
|
|
pub y: i32,
|
|
}
|
|
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn it_works() {
|
|
let result = 2 + 2;
|
|
assert_eq!(result, 4);
|
|
}
|
|
}
|