pub struct IndexBlobEntry {
pub id: String,
pub length: i64,
}Expand description
One entry from kopia index list --json — a single content-index blob.
kopia’s index is a set of these blobs; periodic maintenance compacts them.
When maintenance stops running (e.g. a stale lease owner), the count grows
unbounded and kopia eventually warns “Found too many index blobs (N)”. We
only need the COUNT (the length of the array), so we keep just enough fields
to make a meaningful, future-proof model and let serde ignore the rest
(timestamp, Superseded, …).
use kopiur_kopia::IndexBlobEntry;
let json = r#"{"id":"xn0_5ce…-c1","length":143,"timestamp":"2026-06-15T22:30:50Z","Superseded":null}"#;
let e: IndexBlobEntry = serde_json::from_str(json).unwrap();
assert_eq!(e.length, 143);Fields§
§id: StringThe index blob’s id (kopia’s id, e.g. xn0_…-c1).
length: i64On-disk length of the index blob in bytes.
Trait Implementations§
Source§impl Clone for IndexBlobEntry
impl Clone for IndexBlobEntry
Source§fn clone(&self) -> IndexBlobEntry
fn clone(&self) -> IndexBlobEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexBlobEntry
impl Debug for IndexBlobEntry
Source§impl<'de> Deserialize<'de> for IndexBlobEntry
impl<'de> Deserialize<'de> for IndexBlobEntry
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 IndexBlobEntry
impl PartialEq for IndexBlobEntry
Source§fn eq(&self, other: &IndexBlobEntry) -> bool
fn eq(&self, other: &IndexBlobEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexBlobEntry
impl Serialize for IndexBlobEntry
impl Eq for IndexBlobEntry
impl StructuralPartialEq for IndexBlobEntry
Auto Trait Implementations§
impl Freeze for IndexBlobEntry
impl RefUnwindSafe for IndexBlobEntry
impl Send for IndexBlobEntry
impl Sync for IndexBlobEntry
impl Unpin for IndexBlobEntry
impl UnsafeUnpin for IndexBlobEntry
impl UnwindSafe for IndexBlobEntry
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