pub struct GitWatchConfig {
pub repository_url: String,
pub branch: String,
pub spec_paths: Vec<String>,
pub poll_interval_seconds: u64,
pub auth_token: Option<String>,
pub cache_dir: PathBuf,
pub enabled: bool,
}Will be extracted to mockforge-workspace crate
Expand description
Git watch configuration
Fieldsยง
ยงrepository_url: StringWill be extracted to mockforge-workspace crate
Repository URL (HTTPS or SSH)
branch: StringWill be extracted to mockforge-workspace crate
Branch to watch (default: โmainโ)
spec_paths: Vec<String>Will be extracted to mockforge-workspace crate
Path to OpenAPI spec file(s) in the repository Supports glob patterns (e.g., โ**/.yamlโ, โspecs/.jsonโ)
poll_interval_seconds: u64Will be extracted to mockforge-workspace crate
Polling interval in seconds (default: 60)
auth_token: Option<String>Will be extracted to mockforge-workspace crate
Authentication token for private repositories (optional)
cache_dir: PathBufWill be extracted to mockforge-workspace crate
Local cache directory for cloned repository
enabled: boolWill be extracted to mockforge-workspace crate
Whether to enable watch mode (default: true)
Trait Implementationsยง
Sourceยงimpl Clone for GitWatchConfig
impl Clone for GitWatchConfig
Sourceยงfn clone(&self) -> GitWatchConfig
fn clone(&self) -> GitWatchConfig
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for GitWatchConfig
impl Debug for GitWatchConfig
Sourceยงimpl<'de> Deserialize<'de> for GitWatchConfig
impl<'de> Deserialize<'de> for GitWatchConfig
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>,
Auto Trait Implementationsยง
impl Freeze for GitWatchConfig
impl RefUnwindSafe for GitWatchConfig
impl Send for GitWatchConfig
impl Sync for GitWatchConfig
impl Unpin for GitWatchConfig
impl UnsafeUnpin for GitWatchConfig
impl UnwindSafe for GitWatchConfig
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
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>
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>
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