* chore(clippy): enable and fix many stricter lints These ensure that the codebase uses more idiomatic, performant, and concise language constructions. * chore: make non-Clippy compiler warnings also deny by default
25 lines
604 B
Rust
25 lines
604 B
Rust
// The structures for project/version creation.
|
|
// These are created differently, but are essentially the same between versions.
|
|
|
|
use labrinth::util::actix::MultipartSegment;
|
|
|
|
use crate::common::dummy_data::TestFile;
|
|
|
|
pub struct ProjectCreationRequestData {
|
|
pub slug: String,
|
|
pub jar: Option<TestFile>,
|
|
pub segment_data: Vec<MultipartSegment>,
|
|
}
|
|
|
|
pub struct VersionCreationRequestData {
|
|
pub version: String,
|
|
pub jar: Option<TestFile>,
|
|
pub segment_data: Vec<MultipartSegment>,
|
|
}
|
|
|
|
pub struct ImageData {
|
|
pub filename: String,
|
|
pub extension: String,
|
|
pub icon: Vec<u8>,
|
|
}
|