pub fn create_entry(
state: &JournalState,
fields: EntryFields,
) -> Result<PathBuf>Expand description
Create a new entry in journal with the given fields.
fields.title defaults to "" when None; fields.body defaults to "".
Fails with:
Error::DuplicateTitleif another entry already has the same title.Error::DuplicateIdif the generated ID already exists in the cache (extremely rare in practice).Error::EntryAlreadyExistsif the destination file already exists on disk.Error::EntryNotFound/Error::EntryNotFoundByTitleiffields.parentcannot be resolved.