mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 22:39:06 -05:00
13 lines
435 B
Rust
13 lines
435 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
use crate::{adding::DeckAndNotetype, pb::DeckAndNotetype as DeckAndNotetypeProto};
|
|
|
|
impl From<DeckAndNotetype> for DeckAndNotetypeProto {
|
|
fn from(s: DeckAndNotetype) -> Self {
|
|
DeckAndNotetypeProto {
|
|
deck_id: s.deck_id.0,
|
|
notetype_id: s.notetype_id.0,
|
|
}
|
|
}
|
|
}
|