pub enum ExpandResult {
Original {
hash: String,
bytes: Vec<u8>,
},
CompressedOnly {
hash: String,
compressed: String,
},
}Expand description
Result of resolving a dedup-ref prefix via
CacheManager::expand_prefix.
Two shapes because not every stored entry can be round-tripped to the
raw bytes: cache entries written before the original column was
introduced (or by a code path that didn’t thread originals through)
fall into CompressedOnly. The CLI uses this to pick a message for
the user.
Variants§
Original
Full pre-compression bytes available — this is what sqz expand
was invented to return.
Fields
CompressedOnly
Only the compressed form is stored. Agent still gets legible output; the CLI attaches a note so the user knows why re-running uncompressed may be worthwhile.
Trait Implementations§
Source§impl Clone for ExpandResult
impl Clone for ExpandResult
Source§fn clone(&self) -> ExpandResult
fn clone(&self) -> ExpandResult
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 moreAuto Trait Implementations§
impl Freeze for ExpandResult
impl RefUnwindSafe for ExpandResult
impl Send for ExpandResult
impl Sync for ExpandResult
impl Unpin for ExpandResult
impl UnsafeUnpin for ExpandResult
impl UnwindSafe for ExpandResult
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