pub struct KnowledgeBaseServiceImpl<S: GraphStorage> { /* private fields */ }Implementations§
Source§impl<S: GraphStorage> KnowledgeBaseServiceImpl<S>
impl<S: GraphStorage> KnowledgeBaseServiceImpl<S>
Trait Implementations§
Source§impl<S: GraphStorage> KnowledgeBaseService for KnowledgeBaseServiceImpl<S>
impl<S: GraphStorage> KnowledgeBaseService for KnowledgeBaseServiceImpl<S>
fn create_note<'life0, 'async_trait>(
&'life0 self,
title: impl 'async_trait + Into<String> + Send,
content: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_note_with_id<'life0, 'async_trait>(
&'life0 self,
id: LuhmannId,
title: impl 'async_trait + Into<String> + Send,
content: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_branch<'life0, 'life1, 'async_trait>(
&'life0 self,
parent_id: &'life1 LuhmannId,
title: impl 'async_trait + Into<String> + Send,
content: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_note<'life0, 'life1, 'async_trait>(
&'life0 self,
note_id: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_notes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_notes_by_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
prefix: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_note<'life0, 'life1, 'async_trait>(
&'life0 self,
note_id: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search_notes<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn link_notes<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from_id: &'life1 LuhmannId,
to_id: &'life2 LuhmannId,
context: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_links<'life0, 'life1, 'async_trait>(
&'life0 self,
note_id: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<Vec<NoteLink>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn mark_continuation<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
from_id: &'life1 LuhmannId,
to_id: &'life2 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_index<'life0, 'life1, 'async_trait>(
&'life0 self,
parent_id: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_context<'life0, 'life1, 'async_trait>(
&'life0 self,
note_id: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<NoteContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for KnowledgeBaseServiceImpl<S>where
S: Freeze,
impl<S> RefUnwindSafe for KnowledgeBaseServiceImpl<S>where
S: RefUnwindSafe,
impl<S> Send for KnowledgeBaseServiceImpl<S>
impl<S> Sync for KnowledgeBaseServiceImpl<S>
impl<S> Unpin for KnowledgeBaseServiceImpl<S>where
S: Unpin,
impl<S> UnwindSafe for KnowledgeBaseServiceImpl<S>where
S: UnwindSafe,
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more