resa 0.1.1

Modular Rest interface for searching similar compiler errors to get possible solutions.
Documentation
//! # General
//!
//! A rust written REST search API for error searching.
//!
//! ## Example Usage
//! An example usage of this crate by using the StackOverflow REST API
//! ```rust
//! extern crate resa;
//! use resa::*;
//! let result = resa::stackoverflow::StackOverflow::search("Compiler Error");
//! ```
//! ## Test
//! Try the API by using the binary `resa` on following example:
//! ```rust ignore
//! fn main() {
//!     let v = vec![1, 2, 3];
//!     let v2 = v;
//!     println!("v[0] is: {}", v[0]);
//!     const C: i32 = 2;
//!     static CONST_REF: &'static mut i32 = &mut C;
//!    }
//! ```
//! ```bash
//! resa -f -r 3 fail.rs
//! ```
#[macro_use]
extern crate serde_derive;

extern crate reqwest;
use reqwest::*;

pub trait Solutions<T, E> {
    /// Apply search on
    ///
    /// # Arguments
    ///
    /// * `txt` - Query for seaching errors. Usually the error message.
    ///
    /// # Return
    ///
    /// * Return a generic Type
    fn search(txt: &str) -> Result<T>;
    /// Apply filter on found Result
    ///
    /// # Arguments
    ///
    /// * `self` - to apply filter on own StackOverflow struct
    ///
    /// * `amount_results` - restrict shown results to paritular number. Default is 1.
    fn filter(&mut self, amount_results: usize) -> &mut Self;
}

pub mod stackoverflow;