pub struct ExtractionConfigBuilder { /* private fields */ }Expand description
Builder for ExtractionConfig.
Implementations§
Source§impl ExtractionConfigBuilder
impl ExtractionConfigBuilder
Sourcepub fn extraction_template(self, v: impl Into<String>) -> Self
pub fn extraction_template(self, v: impl Into<String>) -> Self
Saved template name.
Sourcepub fn extraction_ephemeral_template(self, v: Value) -> Self
pub fn extraction_ephemeral_template(self, v: Value) -> Self
Inline template.
Sourcepub fn extraction_prompt(self, v: impl Into<String>) -> Self
pub fn extraction_prompt(self, v: impl Into<String>) -> Self
AI prompt.
Sourcepub fn extraction_model(self, v: ExtractionModel) -> Self
pub fn extraction_model(self, v: ExtractionModel) -> Self
Model.
Sourcepub fn is_document_compressed(self, v: bool) -> Self
pub fn is_document_compressed(self, v: bool) -> Self
Body is compressed.
Sourcepub fn document_compression_format(self, v: CompressionFormat) -> Self
pub fn document_compression_format(self, v: CompressionFormat) -> Self
Compression format.
Sourcepub fn webhook(self, v: impl Into<String>) -> Self
pub fn webhook(self, v: impl Into<String>) -> Self
Set webhook name for post-extraction notification.
Sourcepub fn build(self) -> Result<ExtractionConfig, ScrapflyError>
pub fn build(self) -> Result<ExtractionConfig, ScrapflyError>
Finalize the builder.
Trait Implementations§
Source§impl Clone for ExtractionConfigBuilder
impl Clone for ExtractionConfigBuilder
Source§fn clone(&self) -> ExtractionConfigBuilder
fn clone(&self) -> ExtractionConfigBuilder
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 moreAuto Trait Implementations§
impl Freeze for ExtractionConfigBuilder
impl RefUnwindSafe for ExtractionConfigBuilder
impl Send for ExtractionConfigBuilder
impl Sync for ExtractionConfigBuilder
impl Unpin for ExtractionConfigBuilder
impl UnsafeUnpin for ExtractionConfigBuilder
impl UnwindSafe for ExtractionConfigBuilder
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