pub struct EditOptions {
pub gdb_version: Option<String>,
pub rollback_on_failure: Option<bool>,
pub use_global_ids: Option<bool>,
pub return_edit_results: Option<bool>,
pub session_id: Option<SessionId>,
}Expand description
Options for controlling edit behavior.
These options apply to all edit operations (add, update, delete, and batch).
Fields§
§gdb_version: Option<String>Geodatabase version to target (for versioned data)
rollback_on_failure: Option<bool>If true, all edits are applied only if all succeed. If false, successful edits are applied even if some fail. Default: true
use_global_ids: Option<bool>Use GlobalIDs instead of ObjectIDs for identification
return_edit_results: Option<bool>Return detailed edit results (default: true) When false with rollbackOnFailure=true, returns simple {success: true/false}
session_id: Option<SessionId>Edit session ID for versioned editing workflows
Required when editing branch-versioned geodatabases. Obtain by calling
VersionManagementClient::start_editing.
Implementations§
Source§impl EditOptions
impl EditOptions
Sourcepub fn with_gdb_version(self, version: impl Into<String>) -> Self
pub fn with_gdb_version(self, version: impl Into<String>) -> Self
Sets the geodatabase version.
Sourcepub fn with_rollback_on_failure(self, rollback: bool) -> Self
pub fn with_rollback_on_failure(self, rollback: bool) -> Self
Sets the rollback behavior.
When true, all edits are applied only if all succeed (atomic transaction).
When false, successful edits apply even if some fail.
Sourcepub fn with_use_global_ids(self, use_global_ids: bool) -> Self
pub fn with_use_global_ids(self, use_global_ids: bool) -> Self
Use GlobalIDs instead of ObjectIDs.
Sourcepub fn with_return_edit_results(self, return_results: bool) -> Self
pub fn with_return_edit_results(self, return_results: bool) -> Self
Control whether detailed results are returned.
Sourcepub fn with_session_id(self, session_id: SessionId) -> Self
pub fn with_session_id(self, session_id: SessionId) -> Self
Sets the edit session ID for versioned editing.
Required when editing branch-versioned geodatabases. The session ID is
obtained by calling
VersionManagementClient::start_editing.
§Example
use arcgis::{EditOptions, SessionId};
let session_id = SessionId::new();
let options = EditOptions::new().with_session_id(session_id);Trait Implementations§
Source§impl Clone for EditOptions
impl Clone for EditOptions
Source§fn clone(&self) -> EditOptions
fn clone(&self) -> EditOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more