Trait scrupy::item_pipeline::ItemPipeline [] [src]

pub trait ItemPipeline: Send {
    type ItemType;
    fn process_item(
        &mut self,
        item: Self::ItemType
    ) -> ItemProduct<Self::ItemType>; fn open_spider(&mut self, spider: &Box<Spider<ItemType = Self::ItemType>>) { ... } fn close_spider(&mut self, spider: &Box<Spider<ItemType = Self::ItemType>>) { ... } }

Associated Types

Required Methods

Called when an item is processed.

Provided Methods

Called once when a spider is opened.

Called once when a spider is closed.

Implementors