You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
malachite/src/internal/structs.rs

38 lines
664 B
Rust

3 years ago
use serde_derive::Deserialize;
#[derive(Debug, Deserialize)]
pub struct Config {
pub mode: String,
pub sign: bool,
3 years ago
pub name: Option<String>,
pub repo: Vec<Repo>,
}
#[derive(Debug, Deserialize)]
pub struct Repo {
pub name: String,
pub url: String,
pub priority: usize,
3 years ago
}
#[derive(Debug, Deserialize)]
pub struct UnexpandedConfig {
pub mode: String,
pub sign: bool,
pub name: Option<String>,
pub repo: Vec<String>,
pub urls: Vec<String>,
}
#[derive(Debug)]
pub struct SplitRepo {
pub indx: usize,
pub name: String,
}
#[derive(Debug)]
pub struct ErroredPackage {
pub name: String,
pub code: i32,
}