pub struct BatchStoreResult {
pub stored: usize,
pub skipped: usize,
}Expand description
Result of a batch store operation.
Provides detailed information about what happened during a batch prefix store, allowing callers to log appropriately.
Fields§
§stored: usizeNumber of new prefixes successfully stored.
skipped: usizeNumber of prefixes skipped (URI already had a prefix).
Implementations§
Source§impl BatchStoreResult
impl BatchStoreResult
Sourcepub fn all_stored(&self) -> bool
pub fn all_stored(&self) -> bool
Returns true if all prefixes were stored (none skipped).
Sourcepub fn none_stored(&self) -> bool
pub fn none_stored(&self) -> bool
Returns true if no prefixes were stored (all skipped or empty input).
Trait Implementations§
Source§impl Clone for BatchStoreResult
impl Clone for BatchStoreResult
Source§fn clone(&self) -> BatchStoreResult
fn clone(&self) -> BatchStoreResult
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 BatchStoreResult
impl Debug for BatchStoreResult
Source§impl Default for BatchStoreResult
impl Default for BatchStoreResult
Source§fn default() -> BatchStoreResult
fn default() -> BatchStoreResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchStoreResult
impl PartialEq for BatchStoreResult
impl Eq for BatchStoreResult
impl StructuralPartialEq for BatchStoreResult
Auto Trait Implementations§
impl Freeze for BatchStoreResult
impl RefUnwindSafe for BatchStoreResult
impl Send for BatchStoreResult
impl Sync for BatchStoreResult
impl Unpin for BatchStoreResult
impl UnwindSafe for BatchStoreResult
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