[−][src]Struct contentful::ContentfulClient
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]
&'_ self,
entry_id: &'_ str
) -> Result<T, Box<dyn Error>> where
T: Serialize + Deserialize<'a>,
pub async fn get_entry_json_value<'_, '_>(
&'_ self,
entry_id: &'_ str
) -> Result<Value, Box<dyn Error>>
[src]
&'_ self,
entry_id: &'_ str
) -> Result<Value, Box<dyn Error>>
pub async fn get_entries<T, '_>(
&'_ self,
query_builder: Option<QueryBuilder>
) -> Result<Vec<T>, Box<dyn Error>> where
T: Serialize + Deserialize<'a>,
[src]
&'_ self,
query_builder: Option<QueryBuilder>
) -> Result<Vec<T>, Box<dyn Error>> where
T: Serialize + Deserialize<'a>,
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]
&'_ self,
query_string: &'_ str
) -> Result<Vec<T>, Box<dyn Error>> where
T: Serialize + Deserialize<'a>,
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]
&'_ self,
content_type: &'_ str,
query_builder: Option<QueryBuilder>
) -> Result<Vec<T>, Box<dyn Error>> where
T: Serialize + Deserialize<'a>,
Auto Trait Implementations
impl RefUnwindSafe for ContentfulClient
impl Send for ContentfulClient
impl Sync for ContentfulClient
impl Unpin for ContentfulClient
impl UnwindSafe for ContentfulClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,