pub struct OfflineEditRelinker {
pub strategy: RelinkStrategy,
}Expand description
Relinks a proxy edit to master files.
Fields§
§strategy: RelinkStrategyStrategy to apply when matching.
Implementations§
Source§impl OfflineEditRelinker
impl OfflineEditRelinker
Sourcepub fn new(strategy: RelinkStrategy) -> Self
pub fn new(strategy: RelinkStrategy) -> Self
Create a new relinker with the given strategy.
Sourcepub fn default_fuzzy() -> Self
pub fn default_fuzzy() -> Self
Create a relinker with the default FuzzyMatch strategy.
Sourcepub fn relink(
&self,
proxy_edit: &[EditEvent],
master_files: &[MasterFile],
) -> Vec<OnlineRelink>
pub fn relink( &self, proxy_edit: &[EditEvent], master_files: &[MasterFile], ) -> Vec<OnlineRelink>
Attempt to relink every edit event to a master file.
Each EditEvent.clip_id is compared against MasterFile.id.
- Exact match: clip_id == master_id → confidence 1.0
- Fuzzy match: clip_id starts with master_id prefix → confidence 0.85
- Otherwise: confidence 0.0 (skipped if strategy requires higher confidence)
Auto Trait Implementations§
impl Freeze for OfflineEditRelinker
impl RefUnwindSafe for OfflineEditRelinker
impl Send for OfflineEditRelinker
impl Sync for OfflineEditRelinker
impl Unpin for OfflineEditRelinker
impl UnsafeUnpin for OfflineEditRelinker
impl UnwindSafe for OfflineEditRelinker
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> 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