pub struct SubmitConfig {
pub adapter: String,
pub auto_submit: Option<bool>,
pub auto_review: Option<bool>,
pub co_author: String,
pub git: GitConfig,
pub perforce: PerforceConfig,
pub svn: SvnConfig,
}Expand description
Submit adapter configuration
Fields§
§adapter: StringAdapter type: “git”, “svn”, “perforce”, or “none”
auto_submit: Option<bool>Run full submit workflow (stage + submit) on ta draft apply.
Default: true when adapter != “none”. --no-submit overrides.
Replaces the deprecated auto_commit + auto_push pair.
auto_review: Option<bool>Auto-create review (PR/CL review) after submit. Default: true when adapter != “none”.
Co-author trailer appended to every commit made through TA.
Format: “Name
git: GitConfigGit-specific configuration
perforce: PerforceConfigPerforce-specific configuration
svn: SvnConfigSVN-specific configuration
Implementations§
Source§impl SubmitConfig
impl SubmitConfig
Sourcepub fn effective_auto_submit(&self) -> bool
pub fn effective_auto_submit(&self) -> bool
Whether the full submit workflow should run by default.
Resolution order:
auto_submitif explicitly settruewhen adapter is not “none” (default behavior)
Sourcepub fn effective_auto_review(&self) -> bool
pub fn effective_auto_review(&self) -> bool
Whether review should be opened after submit.
Resolution: explicit auto_review > default (true when adapter != “none”).
Trait Implementations§
Source§impl Clone for SubmitConfig
impl Clone for SubmitConfig
Source§fn clone(&self) -> SubmitConfig
fn clone(&self) -> SubmitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more