# contentful-rs   [![Latest Version]][crates.io] [![Docs]][docs.rs] [Latest Version]: https://img.shields.io/crates/v/contentful.svg [crates.io]: https://crates.io/crates/contentful [Docs]: https://docs.rs/contentful/badge.svg [docs.rs]: https://docs.rs/contentful Contentful API Rust Client ## Usage example ```rust let contentful_client = ContentfulClient::new("", ""); let product = contentful_client.get_entry::("").await?; if let Some(product) = product { let name = product.name; //.. } ``` For more examples, please see the [tests] folder ## Querying for content ### Get a single entry To get a single entry use the get_entry method. ```rust let product = contentful_client.get_entry::("").await?; ``` ### Get multiple entries There are several methods to retrieve multiple entries available in the SDK. #### Get and filter entries ```rust let builder = QueryBuilder::new() .content_type_is("product") .field_equals("fields.name", name); let products = contentful_client .get_entries::(Some(builder)) .await? ``` [tests]: https://github.com/sajuthankappan/contentful-rs/tree/master/tests