struct
Contentful
pub struct Contentful {
/* private fields */
}A Contentful space, read through its Content Delivery API (or the Preview API).
Methods
new
pub fn new(space: &str, access_token: &str) -> ContentfulA space id and a Content Delivery API access token.
environment
pub fn environment(self, env: &str) -> ContentfulThe space's environment (master unless set).
preview
pub fn preview(self, on: bool) -> ContentfulUse the Preview API (drafts); pass a Preview API token to new.