[−][src]Function omdbrs::search_by_title
pub fn search_by_title(title: String) -> Result<Film, Error>
Searches for and returns a film in the OMDb.
Sends a request to OMDb for a film with the name title
and returns a Film
object populated with the returned information. Does no input validation,
formatting, or case-switching, so can be temperamental. Returns a
reqwest::Error
upon failure.
Examples
To search for the film Shrek:
use omdbrs; let shrek: omdbrs::Film = omdbrs::search_by_title(String::from("shrek")) .unwrap(); assert_eq!(shrek.Title, "Shrek");