pub struct DeployOptions {
pub allow_missing_files: Option<bool>,
pub auto_update_package: Option<bool>,
pub check_only: Option<bool>,
pub ignore_warnings: Option<bool>,
pub perform_retrieve: Option<bool>,
pub purge_on_delete: Option<bool>,
pub rollback_on_error: Option<bool>,
pub run_tests: Vec<String>,
pub single_package: Option<bool>,
pub test_level: Option<TestLevel>,
}Expand description
Options for a deploy() call.
All fields are optional — omitted fields are not sent and Salesforce
applies its defaults. Pass Default::default() to use Salesforce’s
defaults for everything.
See the DeployOptions docs for field semantics and production-deploy
requirements (e.g. rollback_on_error must be true for prod).
Fields§
§allow_missing_files: Option<bool>If true, the deployment proceeds even if files listed in
package.xml are missing from the zip. Don’t set on
production deploys.
auto_update_package: Option<bool>Reserved for future use.
check_only: Option<bool>If true, performs a test deployment (validation) without
actually committing the components. Pair with
test_level: RunLocalTests to qualify the result for
deploy_recent_validation.
ignore_warnings: Option<bool>Continue on warnings.
perform_retrieve: Option<bool>Reserved for future use.
purge_on_delete: Option<bool>In dev/sandbox orgs only: skip the Recycle Bin when deleting
components listed in destructiveChanges.xml.
rollback_on_error: Option<bool>Required true for production deployments — roll back the
whole job on any failure.
run_tests: Vec<String>Specific Apex test class names to run. Only meaningful when
test_level is RunSpecifiedTests.
single_package: Option<bool>true if the zip is a single package; false for a set.
test_level: Option<TestLevel>How aggressively to run tests during deployment.
Trait Implementations§
Source§impl Clone for DeployOptions
impl Clone for DeployOptions
Source§fn clone(&self) -> DeployOptions
fn clone(&self) -> DeployOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more