pub struct ValidationConfig {
pub command: Option<String>,
pub commands: Vec<String>,
pub preset: Option<LanguagePreset>,
pub timeout_seconds: u32,
pub on_failure: OnFailure,
}Expand description
Post-merge validation command settings.
Supports both a single command string and a commands array. When both
are specified, command runs first, then all entries from commands.
When neither is set, validation is skipped — unless a preset is
configured, in which case the preset’s commands are used.
Fields§
§command: Option<String>Shell command to run for post-merge validation (e.g. "cargo test").
None means no validation (unless commands or preset is set).
commands: Vec<String>Multiple shell commands to run in sequence. Each runs via sh -c.
Execution stops on first failure.
preset: Option<LanguagePreset>Per-language preset. When set and no explicit command/commands
are configured, the preset’s commands are used instead.
Use "auto" to detect the project type from filesystem markers.
timeout_seconds: u32Timeout in seconds for each validation command.
on_failure: OnFailureWhat to do when validation fails.
Implementations§
Source§impl ValidationConfig
impl ValidationConfig
Sourcepub fn effective_commands(&self) -> Vec<&str>
pub fn effective_commands(&self) -> Vec<&str>
Returns the explicit commands from command and commands fields.
Empty commands are filtered out. If command is set, it becomes the
first entry. All entries from commands follow.
Note: This does not include preset commands. Use
[effective_commands] or the validate phase’s preset resolution for
the full command list (explicit + preset fallback).
Sourcepub fn has_commands(&self) -> bool
pub fn has_commands(&self) -> bool
Returns true if at least one explicit validation command is
configured (ignoring presets).
Sourcepub fn has_any_validation(&self) -> bool
pub fn has_any_validation(&self) -> bool
Returns true if validation is configured — either through explicit
commands or a preset.
Trait Implementations§
Source§impl Clone for ValidationConfig
impl Clone for ValidationConfig
Source§fn clone(&self) -> ValidationConfig
fn clone(&self) -> ValidationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidationConfig
impl Debug for ValidationConfig
Source§impl Default for ValidationConfig
impl Default for ValidationConfig
Source§impl<'de> Deserialize<'de> for ValidationConfig
impl<'de> Deserialize<'de> for ValidationConfig
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>,
Source§impl PartialEq for ValidationConfig
impl PartialEq for ValidationConfig
impl Eq for ValidationConfig
impl StructuralPartialEq for ValidationConfig
Auto Trait Implementations§
impl Freeze for ValidationConfig
impl RefUnwindSafe for ValidationConfig
impl Send for ValidationConfig
impl Sync for ValidationConfig
impl Unpin for ValidationConfig
impl UnsafeUnpin for ValidationConfig
impl UnwindSafe for ValidationConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.