algohub_server/models/
asset.rs

1
2
3
4
5
6
7
8
9
10
11
use std::path::PathBuf;

use serde::{Deserialize, Serialize};
use surrealdb::sql::Thing;

#[derive(Serialize, Deserialize)]
pub struct Asset {
    pub id: Option<Thing>,
    pub name: String,
    pub path: PathBuf,
}