mirror of
https://github.com/ankitects/anki.git
synced 2026-01-15 06:49:03 -05:00
19 lines
603 B
Rust
19 lines
603 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
use crate::types::ObjID;
|
|
use serde_aux::field_attributes::deserialize_number_from_string;
|
|
use serde_derive::Deserialize;
|
|
|
|
#[derive(Deserialize)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct Config {
|
|
#[serde(
|
|
rename = "curDeck",
|
|
deserialize_with = "deserialize_number_from_string"
|
|
)]
|
|
pub(crate) current_deck_id: ObjID,
|
|
pub(crate) rollover: Option<i8>,
|
|
pub(crate) creation_offset: Option<i32>,
|
|
pub(crate) local_offset: Option<i32>,
|
|
}
|