sync
This commit is contained in:
parent
bf6966bd67
commit
0c64f098c6
9 changed files with 136 additions and 14 deletions
27
client/src/package.rs
Normal file
27
client/src/package.rs
Normal file
|
@ -0,0 +1,27 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Package {
|
||||
name: String,
|
||||
publisher: Publisher,
|
||||
version: Version,
|
||||
size: u64,
|
||||
hash: Vec<u8>,
|
||||
dependencies: Vec<String>,
|
||||
publish_date_time: DateTime<Utc>,
|
||||
last_update_date_time: DateTime<Utc>,
|
||||
location: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Version {
|
||||
first: u8,
|
||||
second: u8,
|
||||
third: u8,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct Publisher {
|
||||
name: String,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue