pub struct SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,{ /* private fields */ }Expand description
Built-in pipelines that do not require extra feature flags. Typed transform pipeline for item-to-item transforms before export.
Implementations§
Source§impl<I> SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,
impl<I> SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,
pub fn new() -> SchemaTransformPipeline<I>
pub fn with_transform<F>(self, transform: F) -> SchemaTransformPipeline<I>
Trait Implementations§
Source§impl<I> Default for SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,
impl<I> Default for SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,
Source§fn default() -> SchemaTransformPipeline<I>
fn default() -> SchemaTransformPipeline<I>
Returns the “default value” for a type. Read more
Source§impl<I> Pipeline<I> for SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,
impl<I> Pipeline<I> for SchemaTransformPipeline<I>where
I: ScrapedItem + TypedItemSchema,
Source§fn process_item<'life0, 'async_trait>(
&'life0 self,
item: I,
) -> Pin<Box<dyn Future<Output = Result<Option<I>, PipelineError>> + Send + 'async_trait>>where
'life0: 'async_trait,
SchemaTransformPipeline<I>: 'async_trait,
fn process_item<'life0, 'async_trait>(
&'life0 self,
item: I,
) -> Pin<Box<dyn Future<Output = Result<Option<I>, PipelineError>> + Send + 'async_trait>>where
'life0: 'async_trait,
SchemaTransformPipeline<I>: 'async_trait,
Processes a single scraped item. Read more
Source§fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), PipelineError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Called when the spider is closing. Read more
Auto Trait Implementations§
impl<I> Freeze for SchemaTransformPipeline<I>
impl<I> !RefUnwindSafe for SchemaTransformPipeline<I>
impl<I> Send for SchemaTransformPipeline<I>
impl<I> Sync for SchemaTransformPipeline<I>
impl<I> Unpin for SchemaTransformPipeline<I>where
I: Unpin,
impl<I> UnsafeUnpin for SchemaTransformPipeline<I>
impl<I> !UnwindSafe for SchemaTransformPipeline<I>
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