trustblock-cli 0.9.1

human-friendly console utility that helps to interact with Trustblock from command line.
Documentation
use serde::{Deserialize, Serialize};
use trustblock_cli::types::{AuditContract, Chains, Description, IssueCount, Project, Tag};
use validator::Validate;

#[derive(Debug, Clone, Serialize, Validate, Deserialize)]
pub struct MockAudit {
    #[serde(skip_deserializing)]
    pub chains: Vec<Chains>,
    pub issues: IssueCount,
    pub tags: Vec<Tag>,
    pub contracts: Vec<AuditContract>,
    pub description: Description,
    pub name: String,
    #[serde(rename = "reportHash", skip_deserializing)]
    pub report_hash: String,
    #[validate(url)]
    #[serde(rename = "reportFileUrl", skip_deserializing)]
    pub report_file_url: String,
    pub project: Project,
}

#[derive(Debug, sqlx::FromRow)]
pub struct SQLIssueTempResult {
    pub status: String,
    pub severity: String,
    pub count: i64,
}