[][src]Struct contentful::ContentfulClient

pub struct ContentfulClient { /* fields omitted */ }

Implementations

impl ContentfulClient[src]

pub fn new(delivery_api_access_token: &str, space_id: &str) -> ContentfulClient[src]

pub async fn get_entry<T, '_, '_>(
    &'_ self,
    entry_id: &'_ str
) -> Result<T, Box<dyn Error>> where
    T: Serialize + Deserialize<'a>, 
[src]

pub async fn get_entry_json_value<'_, '_>(
    &'_ self,
    entry_id: &'_ str
) -> Result<Value, Box<dyn Error>>
[src]

pub async fn get_entries<T, '_>(
    &'_ self,
    query_builder: Option<QueryBuilder>
) -> Result<Vec<T>, Box<dyn Error>> where
    T: Serialize + Deserialize<'a>, 
[src]

pub async fn get_entries_by_query_string<T, '_, '_>(
    &'_ self,
    query_string: &'_ str
) -> Result<Vec<T>, Box<dyn Error>> where
    T: Serialize + Deserialize<'a>, 
[src]

pub async fn get_entries_by_type<T, '_, '_>(
    &'_ self,
    content_type: &'_ str,
    query_builder: Option<QueryBuilder>
) -> Result<Vec<T>, Box<dyn Error>> where
    T: Serialize + Deserialize<'a>, 
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.