pub struct SyncConfig {
pub ontology_path: PathBuf,
pub queries_dir: PathBuf,
pub output_dir: PathBuf,
pub language: SyncLanguage,
pub validate: bool,
pub dry_run: bool,
}Expand description
Configuration for a single ggen sync invocation.
Fields§
§ontology_path: PathBufPath to the .ttl ontology file (Stage 1 input).
queries_dir: PathBufDirectory containing .rq SPARQL SELECT files (Stage 2 input).
All *.rq files in this directory are executed in lexicographic order.
output_dir: PathBufDirectory where generated files will be written (Stage 5 output).
Created if it does not exist (unless dry_run is true).
language: SyncLanguageTarget language for code generation (Stage 3).
validate: boolRun WvdA soundness gates on generated source (Stage 4).
Soundness violations are returned in SyncResult but do not abort the
pipeline unless every generated file has at least one critical violation —
callers decide whether to treat violations as hard errors.
dry_run: boolSimulate the pipeline without writing any files.
SyncResult::files_generated will be populated with the paths that would
have been written; SyncResult::receipt is still computed.
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EvidenceKind for T
impl<T> EvidenceKind for T
default fn kind_label(&self) -> &'static str
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