pub struct Store { /* private fields */ }Implementations§
Source§impl Store
impl Store
pub fn open(path: &str) -> Result<Self, Error>
pub fn insert_artifact(&self, artifact: &Value) -> Result<String, Error>
pub fn get_artifact(&self, cid: &str) -> Result<Option<Value>, Error>
pub fn has_artifact(&self, cid: &str) -> Result<bool, Error>
pub fn list_questions( &self, tag: Option<&str>, since: Option<&str>, limit: i64, ) -> Result<Vec<Value>, Error>
pub fn stream_feed( &self, since: Option<&str>, limit: i64, ) -> Result<Vec<Value>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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