pub struct SyncOptions {
pub manifest_path: PathBuf,
pub output_dir: Option<PathBuf>,
pub dry_run: bool,
pub force: bool,
pub audit: bool,
pub selected_rules: Option<Vec<String>>,
pub verbose: bool,
pub watch: bool,
pub validate_only: bool,
pub output_format: OutputFormat,
pub timeout_ms: u64,
}Expand description
Configuration options for ggen sync pipeline execution
These options control the behavior of the code synchronization pipeline, including dry-run mode, audit trail generation, and timeout limits.
Fields§
§manifest_path: PathBufPath to the manifest file (default: ggen.toml)
output_dir: Option<PathBuf>Override output directory from manifest
dry_run: boolPreview changes without writing files
force: boolForce overwrite of protected files
audit: boolGenerate audit trail (audit.json)
selected_rules: Option<Vec<String>>Run only specific rules (by name)
verbose: boolVerbose output during execution
watch: boolWatch for file changes and auto-regenerate
validate_only: boolValidate manifest without generating
output_format: OutputFormatOutput format for results
timeout_ms: u64Maximum execution timeout in milliseconds
Implementations§
Source§impl SyncOptions
impl SyncOptions
Sourcepub fn from_manifest<P: AsRef<Path>>(path: P) -> Self
pub fn from_manifest<P: AsRef<Path>>(path: P) -> Self
Create SyncOptions from a manifest path
Sourcepub fn with_dry_run(self, dry_run: bool) -> Self
pub fn with_dry_run(self, dry_run: bool) -> Self
Set dry-run mode
Sourcepub fn with_verbose(self, verbose: bool) -> Self
pub fn with_verbose(self, verbose: bool) -> Self
Set verbose output
Sourcepub fn with_audit(self, audit: bool) -> Self
pub fn with_audit(self, audit: bool) -> Self
Set audit trail generation
Sourcepub fn with_validate_only(self, validate_only: bool) -> Self
pub fn with_validate_only(self, validate_only: bool) -> Self
Set validate-only mode
Sourcepub fn with_output_format(self, format: OutputFormat) -> Self
pub fn with_output_format(self, format: OutputFormat) -> Self
Set output format
Sourcepub fn with_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_timeout_ms(self, timeout_ms: u64) -> Self
Set timeout in milliseconds
Sourcepub fn with_rules(self, rules: Vec<String>) -> Self
pub fn with_rules(self, rules: Vec<String>) -> Self
Set selected rules
Sourcepub fn with_force(self, force: bool) -> Self
pub fn with_force(self, force: bool) -> Self
Set force overwrite
Sourcepub fn with_output_dir<P: AsRef<Path>>(self, dir: P) -> Self
pub fn with_output_dir<P: AsRef<Path>>(self, dir: P) -> Self
Set output directory override
Trait Implementations§
Source§impl Clone for SyncOptions
impl Clone for SyncOptions
Source§fn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SyncOptions
impl Debug for SyncOptions
Auto Trait Implementations§
impl Freeze for SyncOptions
impl RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl UnwindSafe for SyncOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request