ankiconnect 0.2.0

A Rust library for interacting with AnkiConnect.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{note::NoteInfo, AnkiRequestable, NoteId};
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize)]
pub struct NotesInfoRequest {
    pub notes: Vec<NoteId>,
}

#[derive(Debug, Deserialize)]

pub struct NotesInfoResponse(pub Vec<NoteInfo>);

impl AnkiRequestable for NotesInfoRequest {
    type Response = NotesInfoResponse;

    const ACTION: &'static str = "notesInfo";
    const VERSION: u16 = 6;
}