use super::*;
#[derive(Clone, Data, Debug, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct ReleaseManifestFileEntry {
pub(crate) path: String,
pub(crate) sha256: String,
#[get(type(copy))]
pub(crate) size: u64,
}
#[derive(Clone, Data, Debug, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct ReleaseAssetManifest {
#[get(type(copy))]
pub(crate) format: u32,
pub(crate) version: String,
pub(crate) files: Vec<ReleaseManifestFileEntry>,
}
#[derive(Clone, Data, Debug, Deserialize, Eq, New, PartialEq, Serialize)]
pub struct AiSchemaScanReport {
pub(crate) path: PathBuf,
#[get(type(copy))]
pub(crate) v1_matches: usize,
#[get(type(copy))]
pub(crate) v2_matches: usize,
#[get(type(copy))]
pub(crate) total_matches: usize,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct ZipEntryInput {
pub(crate) archive_path: String,
pub(crate) data: Vec<u8>,
#[get(type(copy))]
pub(crate) stored: bool,
#[get(type(copy))]
pub(crate) unix_mode: u32,
}
#[derive(Clone, Data, Debug, Eq, New, PartialEq)]
pub struct TarEntryInput {
pub(crate) archive_path: String,
pub(crate) data: Vec<u8>,
#[get(type(copy))]
pub(crate) unix_mode: u32,
#[get(type(copy))]
pub(crate) is_dir: bool,
}
pub(crate) struct DeflateBitReader<'a> {
pub(crate) bytes: &'a [u8],
pub(crate) byte_pos: usize,
pub(crate) bit_buf: u64,
pub(crate) bit_count: u32,
}
pub(crate) struct DeflateBitWriter {
pub(crate) out: Vec<u8>,
pub(crate) bit_buf: u64,
pub(crate) bit_count: u32,
}
pub(crate) struct HuffmanDecoder {
pub(crate) counts: [u16; DEFLATE_MAX_BITS + 1],
pub(crate) symbols: Vec<u16>,
}
pub(crate) struct ZipCentralRecord {
pub(crate) name_bytes: Vec<u8>,
pub(crate) method: u16,
pub(crate) flags: u16,
pub(crate) crc32: u32,
pub(crate) compressed_size: u32,
pub(crate) uncompressed_size: u32,
pub(crate) local_offset: u32,
pub(crate) external_attrs: u32,
}
pub(crate) struct ExistingZipRawEntry {
pub(crate) name: String,
pub(crate) method: u16,
pub(crate) flags: u16,
pub(crate) crc32: u32,
pub(crate) compressed_data: Vec<u8>,
pub(crate) uncompressed_size: u32,
pub(crate) external_attrs: u32,
}