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 moreSource§impl Debug for EditOptions
impl Debug for EditOptions
Source§impl Default for EditOptions
impl Default for EditOptions
Auto Trait Implementations§
impl Freeze for EditOptions
impl RefUnwindSafe for EditOptions
impl Send for EditOptions
impl Sync for EditOptions
impl Unpin for EditOptions
impl UnwindSafe for EditOptions
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<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