pub struct EntryStore { /* private fields */ }Expand description
Shared store that maps numeric IDs to article URLs. Persists for the lifetime of the MCP server process.
Implementations§
Source§impl EntryStore
impl EntryStore
pub fn new() -> Self
Sourcepub async fn store_entries(
&self,
entries: Vec<ParsedEntry>,
) -> Result<Vec<FeedEntry>>
pub async fn store_entries( &self, entries: Vec<ParsedEntry>, ) -> Result<Vec<FeedEntry>>
Clear previous entries and store new ones. Returns the list of entries with assigned IDs.
Trait Implementations§
Source§impl Clone for EntryStore
impl Clone for EntryStore
Source§fn clone(&self) -> EntryStore
fn clone(&self) -> EntryStore
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 EntryStore
impl Debug for EntryStore
Source§impl Default for EntryStore
impl Default for EntryStore
Source§fn default() -> EntryStore
fn default() -> EntryStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EntryStore
impl !RefUnwindSafe for EntryStore
impl Send for EntryStore
impl Sync for EntryStore
impl Unpin for EntryStore
impl !UnwindSafe for EntryStore
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