pub struct SolrRequestBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> SolrRequestBuilder<'a>
impl<'a> SolrRequestBuilder<'a>
pub fn new(context: &'a SolrServerContext, url: &'a str) -> Self
pub fn with_query_params(self, query_params: &'a [(&'a str, &'a str)]) -> Self
pub fn with_headers<S: Into<String>, I: IntoIterator<Item = (S, S)>>( self, headers: I, ) -> Self
pub async fn send_get<R: SolrResponseType>(self) -> Result<R, Error>
pub async fn send_post_with_json<T: Serialize + 'a + ?Sized, R: SolrResponseType>( self, json: &T, ) -> Result<R, Error>
pub async fn send_post_with_body<T: Into<Body>, R: SolrResponseType>( self, data: T, ) -> Result<R, Error>
Auto Trait Implementations§
impl<'a> Freeze for SolrRequestBuilder<'a>
impl<'a> !RefUnwindSafe for SolrRequestBuilder<'a>
impl<'a> Send for SolrRequestBuilder<'a>
impl<'a> Sync for SolrRequestBuilder<'a>
impl<'a> Unpin for SolrRequestBuilder<'a>
impl<'a> UnsafeUnpin for SolrRequestBuilder<'a>
impl<'a> !UnwindSafe for SolrRequestBuilder<'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