pub struct SyncOperation {
pub subtitle_path: String,
pub output_path: Option<String>,
pub applied: bool,
pub dry_run: bool,
pub status: &'static str,
pub error: Option<SyncItemError>,
}Expand description
One entry in SyncPayload::operations — describes a planned or
applied write to disk.
Fields§
§subtitle_path: StringSubtitle source path the operation derives from.
output_path: Option<String>Path the synchronized subtitle was (or would have been) written to.
applied: boolTrue when the synchronized subtitle was actually written to disk.
dry_run: boolTrue when --dry-run was supplied.
status: &'static strEither "ok" or "error".
error: Option<SyncItemError>Error metadata when status == "error".
Trait Implementations§
Source§impl Debug for SyncOperation
impl Debug for SyncOperation
Auto Trait Implementations§
impl Freeze for SyncOperation
impl RefUnwindSafe for SyncOperation
impl Send for SyncOperation
impl Sync for SyncOperation
impl Unpin for SyncOperation
impl UnsafeUnpin for SyncOperation
impl UnwindSafe for SyncOperation
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