You've already forked AstralRinth
forked from didirus/AstralRinth
* Expose test utils to Labrinth dependents * Feature gate `labrinth::test` * Unify db migrators * Expose `NotificationBuilder::insert_many_deliveries` * Add logging utils to common crate * Remove unused console-subscriber layer * fix CI
25 lines
599 B
Rust
25 lines
599 B
Rust
// The structures for project/version creation.
|
|
// These are created differently, but are essentially the same between versions.
|
|
|
|
use crate::util::actix::MultipartSegment;
|
|
|
|
use crate::test::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>,
|
|
}
|