chara_card 0.4.1

A library to deal with character card formats and `.charx` in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serdev::{Deserialize, Serialize};

/// Represents version-3-specific features of lorebook entry.
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct LorebookEntry {
    /// If true, strings in `keys` are considered as regex string.
    /// Otherwise, strings in `keys` are considered as regular string.
    ///
    /// ## Expected Behaviour
    ///
    /// If this field is true and `keys` has invalid regex string,
    /// Application **MUST** consider the lorebook as not a match.
    pub use_regex: bool,
}