pub struct ImgApp<'a> {
pub app: Core,
pub options: HashMap<&'a str, &'a str>,
pub format: ImgFormat,
}Fields
app: Coreoptions: HashMap<&'a str, &'a str>format: ImgFormatImplementations
sourceimpl<'a> ImgApp<'a>
impl<'a> ImgApp<'a>
pub fn new() -> Result<Self, WkhtmlError>
pub fn set_format(&mut self, format: ImgFormat) -> Result<&mut Self, WkhtmlError>
pub fn set_work_dir(&mut self, work_dir: &str) -> Result<&mut Self, WkhtmlError>
pub fn set_args(
&mut self,
args: HashMap<&'a str, &'a str>
) -> Result<&mut Self, WkhtmlError>
pub fn set_arg(
&mut self,
key: &'a str,
arg: &'a str
) -> Result<&mut Self, WkhtmlError>
pub fn run(
&self,
input: WkhtmlInput<'_>,
name: &str
) -> Result<String, WkhtmlError>
pub fn default_extension() -> &'a str
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for ImgApp<'a>
impl<'a> Send for ImgApp<'a>
impl<'a> Sync for ImgApp<'a>
impl<'a> Unpin for ImgApp<'a>
impl<'a> UnwindSafe for ImgApp<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more