Document use of empty strings for defaults

This commit is contained in:
RumovZ 2022-05-11 10:09:15 +02:00
parent 7bb423f72e
commit fe862523e6

View file

@ -24,7 +24,11 @@ impl ForeignData {
struct Context<'a> { struct Context<'a> {
col: &'a mut Collection, col: &'a mut Collection,
/// Notetypes by their name or id as string. The empty string yields the
/// default notetype (which may be [None]).
notetypes: HashMap<String, Option<Arc<Notetype>>>, notetypes: HashMap<String, Option<Arc<Notetype>>>,
/// Deck ids by their decks' name or id as string. The empty string yields
/// the default deck (which may be [None]).
deck_ids: HashMap<String, Option<DeckId>>, deck_ids: HashMap<String, Option<DeckId>>,
usn: Usn, usn: Usn,
normalize_notes: bool, normalize_notes: bool,