pub struct InstallationResults {
pub installed_count: usize,
pub checksums: Vec<(ResourceId, String)>,
pub context_checksums: Vec<(ResourceId, Option<String>)>,
pub applied_patches: Vec<(ResourceId, AppliedPatches)>,
pub token_counts: Vec<(ResourceId, Option<u64>)>,
}Expand description
Results from a successful installation operation.
This struct encapsulates all the data returned from installing resources, providing a more readable and maintainable alternative to the complex 4-tuple that previously triggered clippy::type_complexity warnings.
§Fields
- installed_count: Number of resources that were successfully installed
- checksums: File checksums for each installed resource (ResourceId -> SHA256)
- context_checksums: Template context checksums for each resource (ResourceId -> SHA256 or None)
- applied_patches: List of applied patches for each resource (ResourceId -> AppliedPatches)
- token_counts: Approximate BPE token counts for each resource (ResourceId -> Option
)
Fields§
§installed_count: usizeNumber of resources that were successfully installed
checksums: Vec<(ResourceId, String)>File checksums for each installed resource
context_checksums: Vec<(ResourceId, Option<String>)>Template context checksums for each resource (None if no templating used)
applied_patches: Vec<(ResourceId, AppliedPatches)>Applied patch information for each resource
token_counts: Vec<(ResourceId, Option<u64>)>Approximate BPE token counts for each resource (None for skills/directories)
Implementations§
Source§impl InstallationResults
impl InstallationResults
Sourcepub fn new(
installed_count: usize,
checksums: Vec<(ResourceId, String)>,
context_checksums: Vec<(ResourceId, Option<String>)>,
applied_patches: Vec<(ResourceId, AppliedPatches)>,
token_counts: Vec<(ResourceId, Option<u64>)>,
) -> Self
pub fn new( installed_count: usize, checksums: Vec<(ResourceId, String)>, context_checksums: Vec<(ResourceId, Option<String>)>, applied_patches: Vec<(ResourceId, AppliedPatches)>, token_counts: Vec<(ResourceId, Option<u64>)>, ) -> Self
Creates a new InstallationResults instance.
§Arguments
installed_count- Number of successfully installed resourceschecksums- File checksums for each installed resourcecontext_checksums- Template context checksums for each resourceapplied_patches- Applied patch information for each resourcetoken_counts- Approximate BPE token counts for each resource
Trait Implementations§
Source§impl Clone for InstallationResults
impl Clone for InstallationResults
Source§fn clone(&self) -> InstallationResults
fn clone(&self) -> InstallationResults
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 moreAuto Trait Implementations§
impl Freeze for InstallationResults
impl RefUnwindSafe for InstallationResults
impl Send for InstallationResults
impl Sync for InstallationResults
impl Unpin for InstallationResults
impl UnwindSafe for InstallationResults
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<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