pub struct BackgroundKnowledge {
pub entry_id: Uuid,
pub domain: String,
pub permanence: Permanence,
pub supports: Vec<Uuid>,
pub last_verified: DateTime<Utc>,
pub version: Option<String>,
}Expand description
Contextual knowledge that supports understanding but isn’t directly actionable.
Background knowledge provides context, general reference material, and supports case knowledge.
Fields§
§entry_id: UuidUnique identifier for this knowledge entry.
domain: StringKnowledge domain (e.g., “rust”, “architecture”, “devops”).
permanence: PermanenceHow stable/permanent this knowledge is.
supports: Vec<Uuid>IDs of case knowledge entries this supports.
last_verified: DateTime<Utc>When this knowledge was last verified as current.
version: Option<String>Version information if applicable.
Implementations§
Source§impl BackgroundKnowledge
impl BackgroundKnowledge
Sourcepub fn new(entry_id: Uuid, domain: impl Into<String>) -> Self
pub fn new(entry_id: Uuid, domain: impl Into<String>) -> Self
Create new background knowledge with default values.
Sourcepub fn with_permanence(self, permanence: Permanence) -> Self
pub fn with_permanence(self, permanence: Permanence) -> Self
Set the permanence level.
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Set the version.
Sourcepub fn with_support(self, case_id: Uuid) -> Self
pub fn with_support(self, case_id: Uuid) -> Self
Add a supported case knowledge entry.
Trait Implementations§
Source§impl Clone for BackgroundKnowledge
impl Clone for BackgroundKnowledge
Source§fn clone(&self) -> BackgroundKnowledge
fn clone(&self) -> BackgroundKnowledge
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 BackgroundKnowledge
impl Debug for BackgroundKnowledge
Source§impl<'de> Deserialize<'de> for BackgroundKnowledge
impl<'de> Deserialize<'de> for BackgroundKnowledge
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 BackgroundKnowledge
impl RefUnwindSafe for BackgroundKnowledge
impl Send for BackgroundKnowledge
impl Sync for BackgroundKnowledge
impl Unpin for BackgroundKnowledge
impl UnsafeUnpin for BackgroundKnowledge
impl UnwindSafe for BackgroundKnowledge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request