pub struct BatchScript { /* private fields */ }Expand description
批处理脚本
Implementations§
Source§impl BatchScript
impl BatchScript
Sourcepub fn from_string(content: String) -> Result<Self>
pub fn from_string(content: String) -> Result<Self>
从字符串解析脚本
Sourcepub fn show_progress(self, yes: bool) -> Self
pub fn show_progress(self, yes: bool) -> Self
显示进度
Sourcepub fn continue_on_error(self, yes: bool) -> Self
pub fn continue_on_error(self, yes: bool) -> Self
遇到错误时继续
Sourcepub fn execute(&self, exiftool: &ExifTool) -> Result<BatchResult>
pub fn execute(&self, exiftool: &ExifTool) -> Result<BatchResult>
执行脚本
Trait Implementations§
Source§impl Clone for BatchScript
impl Clone for BatchScript
Source§fn clone(&self) -> BatchScript
fn clone(&self) -> BatchScript
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 moreSource§impl Debug for BatchScript
impl Debug for BatchScript
Auto Trait Implementations§
impl Freeze for BatchScript
impl RefUnwindSafe for BatchScript
impl Send for BatchScript
impl Sync for BatchScript
impl Unpin for BatchScript
impl UnsafeUnpin for BatchScript
impl UnwindSafe for BatchScript
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