pub struct ContextArtifactStore { /* private fields */ }Implementations§
Source§impl ContextArtifactStore
impl ContextArtifactStore
pub fn new(backend: Arc<dyn ContextArtifactAccess>) -> Self
pub fn backend(&self) -> Arc<dyn ContextArtifactAccess>
pub fn create( &self, request: CreateArtifactRequest<'_>, ) -> Result<ContextArtifact>
pub fn append( &self, thread_id: &ThreadId, artifact_id: &ContextArtifactId, bytes: &[u8], ) -> Result<ContextArtifact>
pub fn list_artifacts( &self, thread_id: &ThreadId, ) -> Result<Vec<ContextArtifact>>
pub fn read_artifact( &self, thread_id: &ThreadId, artifact_id: &ContextArtifactId, start_line: usize, limit: usize, ) -> Result<ArtifactReadPage>
pub fn grep_artifact( &self, thread_id: &ThreadId, artifact_id: &ContextArtifactId, query: &str, offset: usize, limit: usize, ) -> Result<ArtifactGrepPage>
pub fn tail_artifact( &self, thread_id: &ThreadId, artifact_id: &ContextArtifactId, lines: usize, ) -> Result<ArtifactTailPage>
pub fn delete_artifact( &self, thread_id: &ThreadId, artifact_id: &ContextArtifactId, ) -> Result<bool>
Trait Implementations§
Source§impl Clone for ContextArtifactStore
impl Clone for ContextArtifactStore
Source§fn clone(&self) -> ContextArtifactStore
fn clone(&self) -> ContextArtifactStore
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ContextArtifactStore
impl !UnwindSafe for ContextArtifactStore
impl Freeze for ContextArtifactStore
impl Send for ContextArtifactStore
impl Sync for ContextArtifactStore
impl Unpin for ContextArtifactStore
impl UnsafeUnpin for ContextArtifactStore
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