mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
20 lines
561 B
Rust
20 lines
561 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
use crate::{backend_proto as pb, scheduler::states::NewState};
|
|
|
|
impl From<pb::scheduling_state::New> for NewState {
|
|
fn from(state: pb::scheduling_state::New) -> Self {
|
|
NewState {
|
|
position: state.position,
|
|
}
|
|
}
|
|
}
|
|
|
|
impl From<NewState> for pb::scheduling_state::New {
|
|
fn from(state: NewState) -> Self {
|
|
pb::scheduling_state::New {
|
|
position: state.position,
|
|
}
|
|
}
|
|
}
|