pub struct SessionKnowledgeSettings {
pub session_id: String,
pub enabled_knowledge: HashSet<String>,
}Expand description
Session-scoped knowledge settings
Fields§
§session_id: StringSession ID
enabled_knowledge: HashSet<String>Set of enabled knowledge item IDs
Implementations§
Source§impl SessionKnowledgeSettings
impl SessionKnowledgeSettings
Sourcepub fn is_enabled(&self, knowledge_id: &str) -> bool
pub fn is_enabled(&self, knowledge_id: &str) -> bool
Check if a knowledge item is enabled
Trait Implementations§
Source§impl Clone for SessionKnowledgeSettings
impl Clone for SessionKnowledgeSettings
Source§fn clone(&self) -> SessionKnowledgeSettings
fn clone(&self) -> SessionKnowledgeSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionKnowledgeSettings
impl Debug for SessionKnowledgeSettings
Source§impl<'de> Deserialize<'de> for SessionKnowledgeSettings
impl<'de> Deserialize<'de> for SessionKnowledgeSettings
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 SessionKnowledgeSettings
impl RefUnwindSafe for SessionKnowledgeSettings
impl Send for SessionKnowledgeSettings
impl Sync for SessionKnowledgeSettings
impl Unpin for SessionKnowledgeSettings
impl UnwindSafe for SessionKnowledgeSettings
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