pub struct TransformConfig {
pub readability: bool,
pub return_format: ReturnFormat,
pub filter_images: bool,
pub clean_html: bool,
pub filter_svg: bool,
pub main_content: bool,
}Expand description
Transformation configuration adjustments.
Fields§
§readability: boolReadability mode.
return_format: ReturnFormatThe return format to use.
filter_images: boolFilter Images.
clean_html: boolTrim the content for LLMs.
filter_svg: boolFilter svgs.
main_content: boolMain content for the page. Exclude the nav, footer, and etc.
Trait Implementations§
Source§impl Clone for TransformConfig
impl Clone for TransformConfig
Source§fn clone(&self) -> TransformConfig
fn clone(&self) -> TransformConfig
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 TransformConfig
impl Debug for TransformConfig
Source§impl Default for TransformConfig
impl Default for TransformConfig
Source§fn default() -> TransformConfig
fn default() -> TransformConfig
Returns the “default value” for a type. Read more
impl Copy for TransformConfig
Auto Trait Implementations§
impl Freeze for TransformConfig
impl RefUnwindSafe for TransformConfig
impl Send for TransformConfig
impl Sync for TransformConfig
impl Unpin for TransformConfig
impl UnsafeUnpin for TransformConfig
impl UnwindSafe for TransformConfig
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