Skip to main content

Connector

Trait Connector 

Source
pub trait Connector {
    // Required methods
    fn name(&self) -> &'static str;
    fn fetch(&self, since: Option<&str>) -> Result<Vec<Document>, String>;
}
Expand description

What every connector must do: name itself and produce documents.

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn fetch(&self, since: Option<&str>) -> Result<Vec<Document>, String>

Fetch documents changed since since (RFC3339), or everything.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§