pub struct HarvestConfig {
pub concurrency: usize,
pub upsert_batch_size: usize,
pub force_full_sync: bool,
pub dry_run: bool,
}Expand description
Harvest-only configuration (metadata fetching + delta detection).
Used by crate::HarvestService when running without an embedding provider.
Contains only the settings relevant to portal fetching and persistence.
Fields§
§concurrency: usizeNumber of concurrent dataset processing tasks.
upsert_batch_size: usizeMaximum number of datasets per DB upsert batch.
force_full_sync: boolForce full sync even if incremental sync is available.
dry_run: boolPreview mode: fetch and compare datasets without writing to DB.
Implementations§
Source§impl HarvestConfig
impl HarvestConfig
Sourcepub fn with_full_sync(self) -> Self
pub fn with_full_sync(self) -> Self
Creates a new HarvestConfig with force_full_sync enabled.
Sourcepub fn with_dry_run(self) -> Self
pub fn with_dry_run(self) -> Self
Creates a new HarvestConfig with dry_run enabled.
Trait Implementations§
Source§impl Clone for HarvestConfig
impl Clone for HarvestConfig
Source§fn clone(&self) -> HarvestConfig
fn clone(&self) -> HarvestConfig
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 moreAuto Trait Implementations§
impl Freeze for HarvestConfig
impl RefUnwindSafe for HarvestConfig
impl Send for HarvestConfig
impl Sync for HarvestConfig
impl Unpin for HarvestConfig
impl UnsafeUnpin for HarvestConfig
impl UnwindSafe for HarvestConfig
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