pub struct EditResult { /* private fields */ }Expand description
Result of an edit operation (add, update, or delete).
Contains arrays of results for each type of edit performed. When using individual operations (addFeatures, updateFeatures, deleteFeatures), only the corresponding result array will be populated.
Implementations§
Source§impl EditResult
Auto-generated by derive_getters::Getters.
impl EditResult
Auto-generated by derive_getters::Getters.
Sourcepub fn add_results(&self) -> &Vec<EditResultItem>
pub fn add_results(&self) -> &Vec<EditResultItem>
Results from adding features
Sourcepub fn update_results(&self) -> &Vec<EditResultItem>
pub fn update_results(&self) -> &Vec<EditResultItem>
Results from updating features
Sourcepub fn delete_results(&self) -> &Vec<EditResultItem>
pub fn delete_results(&self) -> &Vec<EditResultItem>
Results from deleting features
Source§impl EditResult
impl EditResult
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Returns true if all edit operations succeeded.
Sourcepub fn success_count(&self) -> usize
pub fn success_count(&self) -> usize
Returns the total number of successful edits across all operations.
Sourcepub fn failure_count(&self) -> usize
pub fn failure_count(&self) -> usize
Returns the total number of failed edits across all operations.
Trait Implementations§
Source§impl Clone for EditResult
impl Clone for EditResult
Source§fn clone(&self) -> EditResult
fn clone(&self) -> EditResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditResult
impl Debug for EditResult
Source§impl<'de> Deserialize<'de> for EditResult
impl<'de> Deserialize<'de> for EditResult
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EditResult
impl PartialEq for EditResult
Source§impl Serialize for EditResult
impl Serialize for EditResult
impl Eq for EditResult
impl StructuralPartialEq for EditResult
Auto Trait Implementations§
impl Freeze for EditResult
impl RefUnwindSafe for EditResult
impl Send for EditResult
impl Sync for EditResult
impl Unpin for EditResult
impl UnwindSafe for EditResult
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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