mirror of
https://github.com/ankitects/anki.git
synced 2025-12-03 09:57:13 -05:00
* Prepare to switch Rust import style * Run nightly format Closes #2320 * Clean up a few imports * Enable comment wrapping * Wrap comments
18 lines
470 B
Rust
18 lines
470 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
use serde_derive::Deserialize;
|
|
use serde_derive::Serialize;
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
pub struct SanityCheckRequest {
|
|
pub local: u32,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize, Eq, PartialEq, Debug)]
|
|
pub enum MediaSanityCheckResponse {
|
|
#[serde(rename = "OK")]
|
|
Ok,
|
|
#[serde(rename = "mediaSanity")]
|
|
SanityCheckFailed,
|
|
}
|