create skeleton for server from design
This commit is contained in:
20
server/texture-sync-server/src/model/mod.rs
Normal file
20
server/texture-sync-server/src/model/mod.rs
Normal file
@ -0,0 +1,20 @@
|
||||
// TODO: remove on implementation
|
||||
#![allow(unused_imports)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
pub struct Sha256(pub [u8; 64]);
|
||||
|
||||
pub struct Texture {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
pub tags: Vec<String>,
|
||||
pub format: TextureFormat,
|
||||
pub resolution: (usize, usize),
|
||||
pub texture_hash: Sha256,
|
||||
}
|
||||
|
||||
pub enum TextureFormat {
|
||||
PNG,
|
||||
JPEG,
|
||||
}
|
Reference in New Issue
Block a user