pub struct FetchParams {
pub content_format: ContentFormat,
pub limit: Option<usize>,
pub max_content_chars: Option<usize>,
pub since: Option<DateTime<Utc>>,
pub concurrency: usize,
pub timeout: Duration,
pub user_agent: String,
pub cache_policy: CachePolicy,
}Expand description
Parameters shared by the CLI and the MCP server for a fetch operation.
Fields§
§content_format: ContentFormat§limit: Option<usize>Maximum items per feed (most recent first), or None for all.
max_content_chars: Option<usize>Maximum characters of extracted content per item; longer bodies are truncated on a
char boundary and flagged content_truncated. None keeps full content.
since: Option<DateTime<Utc>>Only include items published at or after this instant.
concurrency: usizeMaximum number of feeds fetched concurrently.
timeout: Duration§user_agent: String§cache_policy: CachePolicyTrait Implementations§
Source§impl Clone for FetchParams
impl Clone for FetchParams
Source§fn clone(&self) -> FetchParams
fn clone(&self) -> FetchParams
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 moreSource§impl Debug for FetchParams
impl Debug for FetchParams
Auto Trait Implementations§
impl Freeze for FetchParams
impl RefUnwindSafe for FetchParams
impl Send for FetchParams
impl Sync for FetchParams
impl Unpin for FetchParams
impl UnsafeUnpin for FetchParams
impl UnwindSafe for FetchParams
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