pub struct HarvestConfig {
pub db_path: PathBuf,
pub auto_commit: bool,
pub include_providers: Vec<String>,
pub exclude_providers: Vec<String>,
pub include_workspaces: bool,
pub last_harvest: Option<i64>,
}Expand description
Configuration for the harvest database
Fields§
§db_path: PathBufPath to the harvest database
auto_commit: boolAuto-commit changes to git
include_providers: Vec<String>Providers to include (empty = all)
exclude_providers: Vec<String>Providers to exclude
include_workspaces: boolInclude VS Code workspaces
last_harvest: Option<i64>Last harvest timestamp
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 moreSource§impl Debug for HarvestConfig
impl Debug for HarvestConfig
Source§impl Default for HarvestConfig
impl Default for HarvestConfig
Source§impl<'de> Deserialize<'de> for HarvestConfig
impl<'de> Deserialize<'de> for HarvestConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HarvestConfig
impl RefUnwindSafe for HarvestConfig
impl Send for HarvestConfig
impl Sync for HarvestConfig
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more