pub struct ApplyResult {
pub applied: Vec<String>,
pub skipped: Vec<String>,
pub missing: Vec<String>,
pub unused: Vec<String>,
pub errors: Vec<ApplyError>,
}Expand description
Result of applying tensor snapshots to a module
Fields§
§applied: Vec<String>Successfully applied tensor paths
skipped: Vec<String>Skipped tensor paths (due to filter)
missing: Vec<String>Missing tensor paths (in module but not in snapshots)
unused: Vec<String>Unused tensor paths (in snapshots but not in module)
errors: Vec<ApplyError>Errors encountered during application
Implementations§
Source§impl ApplyResult
impl ApplyResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the apply operation was successful (no errors) Note: Missing tensors are not considered errors when allow_partial is true
Trait Implementations§
Source§impl Clone for ApplyResult
impl Clone for ApplyResult
Source§fn clone(&self) -> ApplyResult
fn clone(&self) -> ApplyResult
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 ApplyResult
impl RefUnwindSafe for ApplyResult
impl Send for ApplyResult
impl Sync for ApplyResult
impl Unpin for ApplyResult
impl UnwindSafe for ApplyResult
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