pub struct PlatzRequest<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PlatzRequest<'a>
impl<'a> PlatzRequest<'a>
pub fn new<S>(client: &'a PlatzClient, method: Method, path: S) -> Self
pub fn query<K, V>(self, key: K, value: V) -> Self
pub fn add_to_query<I, K, V>(self, iter: I) -> Self
pub async fn request_builder(&self) -> Result<RequestBuilder, PlatzClientError>
pub async fn send_with_no_response(self) -> Result<(), PlatzClientError>
pub async fn send<T>(self) -> Result<T, PlatzClientError>where
T: DeserializeOwned + Send,
pub async fn send_with_body<T, R>(self, body: T) -> Result<R, PlatzClientError>
pub async fn single_page<T>( &self, page_index: i64, page_size: Option<i64>, ) -> Result<Paginated<T>, PlatzClientError>
pub async fn paginated<T>(self) -> Result<Vec<T>, PlatzClientError>
pub async fn paginated_expect_one<T>(self) -> Result<T, PlatzClientError>
Trait Implementations§
Source§impl<'a> Clone for PlatzRequest<'a>
impl<'a> Clone for PlatzRequest<'a>
Source§fn clone(&self) -> PlatzRequest<'a>
fn clone(&self) -> PlatzRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for PlatzRequest<'a>
impl<'a> !RefUnwindSafe for PlatzRequest<'a>
impl<'a> Send for PlatzRequest<'a>
impl<'a> Sync for PlatzRequest<'a>
impl<'a> Unpin for PlatzRequest<'a>
impl<'a> !UnwindSafe for PlatzRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more