pub struct Web2PptConfig {
pub max_slides: usize,
pub max_bullets_per_slide: usize,
pub include_images: bool,
pub include_tables: bool,
pub include_code: bool,
pub user_agent: String,
pub timeout_secs: u64,
pub title_font_size: u32,
pub content_font_size: u32,
pub extract_links: bool,
pub group_by_headings: bool,
}Expand description
Configuration options for web2ppt conversion
Fields§
§max_slides: usizeMaximum number of slides to generate
max_bullets_per_slide: usizeMaximum bullets per slide
include_images: boolInclude images from the webpage
include_tables: boolInclude tables from the webpage
include_code: boolInclude code blocks
user_agent: StringUser agent for HTTP requests
timeout_secs: u64Request timeout in seconds
title_font_size: u32Title font size
content_font_size: u32Content font size
extract_links: boolExtract links as hyperlinks
group_by_headings: boolGroup content by headings
Implementations§
Source§impl Web2PptConfig
impl Web2PptConfig
Sourcepub fn max_slides(self, max: usize) -> Self
pub fn max_slides(self, max: usize) -> Self
Set maximum slides
Sourcepub fn max_bullets(self, max: usize) -> Self
pub fn max_bullets(self, max: usize) -> Self
Set maximum bullets per slide
Sourcepub fn with_images(self, include: bool) -> Self
pub fn with_images(self, include: bool) -> Self
Enable/disable images
Sourcepub fn with_tables(self, include: bool) -> Self
pub fn with_tables(self, include: bool) -> Self
Enable/disable tables
Sourcepub fn user_agent(self, ua: &str) -> Self
pub fn user_agent(self, ua: &str) -> Self
Set custom user agent
Sourcepub fn title_size(self, size: u32) -> Self
pub fn title_size(self, size: u32) -> Self
Set title font size
Sourcepub fn content_size(self, size: u32) -> Self
pub fn content_size(self, size: u32) -> Self
Set content font size
Sourcepub fn with_links(self, extract: bool) -> Self
pub fn with_links(self, extract: bool) -> Self
Enable/disable link extraction
Sourcepub fn group_by_headings(self, group: bool) -> Self
pub fn group_by_headings(self, group: bool) -> Self
Enable/disable grouping by headings
Trait Implementations§
Source§impl Clone for Web2PptConfig
impl Clone for Web2PptConfig
Source§fn clone(&self) -> Web2PptConfig
fn clone(&self) -> Web2PptConfig
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 Web2PptConfig
impl Debug for Web2PptConfig
Auto Trait Implementations§
impl Freeze for Web2PptConfig
impl RefUnwindSafe for Web2PptConfig
impl Send for Web2PptConfig
impl Sync for Web2PptConfig
impl Unpin for Web2PptConfig
impl UnwindSafe for Web2PptConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().