Skip to main content

knowledge_base_crud/entity/
mod.rs

1mod query;
2mod read;
3mod relationships;
4mod statement;
5
6pub use query::{EntitiesPage, EntityFilter};
7pub use relationships::{EntityRelationship, EntityRelationshipsPage, RelatedEntity, RelationshipDirection};
8pub use statement::{ApplyMode, ApplyStatementsOutcome, StatementBatch, StatementInput, StatementResult, StatementResultStatus};
9
10use crate::KnowledgeBase;
11
12#[derive(Clone, Copy, Debug)]
13pub struct Entities<'a> {
14    knowledge_base: &'a KnowledgeBase,
15}
16
17impl<'a> Entities<'a> {
18    pub(crate) fn new(knowledge_base: &'a KnowledgeBase) -> Self {
19        Self { knowledge_base }
20    }
21}