pub struct Options {
pub brand: Option<Brand>,
pub brand_resolver: Option<BrandResolver>,
pub minify_html: bool,
pub assets: Vec<(String, Vec<u8>)>,
pub asset_resolver: Option<AssetResolver>,
pub embed_urls: bool,
pub max_asset_bytes: Option<usize>,
}Fields§
§brand: Option<Brand>§brand_resolver: Option<BrandResolver>§minify_html: bool§assets: Vec<(String, Vec<u8>)>Pre-supplied bytes keyed by the exact src written in the .cv; looked up first, so a
web server can pass uploads without a 'static resolver.
asset_resolver: Option<AssetResolver>§embed_urls: boolAlso send http(s):// sources to asset_resolver; otherwise they stay plain references.
max_asset_bytes: Option<usize>Largest embeddable asset in bytes (default 2 MiB).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl !UnwindSafe for Options
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl Unpin for Options
impl UnsafeUnpin for Options
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