pub struct KnowledgeConfig {
pub language: String,
pub timezone: String,
pub move_to_commands: Vec<String>,
pub pomodoro_duration_in_minutes: i64,
pub schedules: Vec<Schedule>,
pub quick_commands: Vec<String>,
pub two_emojis_enabled: bool,
pub mode: String,
pub quick_habits_enabled: bool,
pub channels: Vec<i64>,
}Expand description
User knowledge base configuration.
Stored as config.json in the knowledge base root.
Decoupled from any server-specific config.
Fields§
§language: StringLanguage code (e.g., “en”, “ko”).
timezone: StringTimezone string (e.g., “+09:00”, “UTC”).
move_to_commands: Vec<String>Move-to commands (quick file organization).
pomodoro_duration_in_minutes: i64Pomodoro timer duration in minutes.
schedules: Vec<Schedule>Scheduled tasks.
quick_commands: Vec<String>Quick commands.
two_emojis_enabled: boolWhether to show two emojis per button.
mode: StringMode: “chat”, “full”, “tasks”, “notes”, “journal”.
quick_habits_enabled: boolWhether quick habits are enabled.
channels: Vec<i64>Associated channel IDs.
Trait Implementations§
Source§impl Clone for KnowledgeConfig
impl Clone for KnowledgeConfig
Source§fn clone(&self) -> KnowledgeConfig
fn clone(&self) -> KnowledgeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KnowledgeConfig
impl Debug for KnowledgeConfig
Source§impl Default for KnowledgeConfig
impl Default for KnowledgeConfig
Source§impl<'de> Deserialize<'de> for KnowledgeConfig
impl<'de> Deserialize<'de> for KnowledgeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KnowledgeConfig
impl RefUnwindSafe for KnowledgeConfig
impl Send for KnowledgeConfig
impl Sync for KnowledgeConfig
impl Unpin for KnowledgeConfig
impl UnsafeUnpin for KnowledgeConfig
impl UnwindSafe for KnowledgeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more