pub struct Query<C: Client> {
pub http_client: Arc<C>,
pub user_agent: String,
pub endpoint: String,
pub canonical_endpoint: String,
pub auth: Auth,
}Fields§
§http_client: Arc<C>§user_agent: String§endpoint: String§canonical_endpoint: String§auth: AuthImplementations§
Source§impl<C: Client> Query<C>
impl<C: Client> Query<C>
pub fn new_request( &self, method: Method, path: impl Into<String>, content_type: impl Into<String>, on_behalf_of: Option<OnBehalfOfInfo>, body: Option<Bytes>, ) -> Request
pub async fn execute( &self, method: Method, path: impl Into<String>, content_type: impl Into<String>, on_behalf_of: Option<OnBehalfOfInfo>, body: Option<Bytes>, ) -> Result<Response>
pub async fn query(&self, opts: &QueryOptions) -> Result<QueryRespReader>
pub async fn get_pending_mutations( &self, opts: &GetPendingMutationsOptions<'_>, ) -> Result<HashMap<String, HashMap<String, i64>>>
pub async fn ping(&self, opts: &PingOptions<'_>) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for Query<C>
impl<C> RefUnwindSafe for Query<C>where
C: RefUnwindSafe,
impl<C> Send for Query<C>
impl<C> Sync for Query<C>
impl<C> Unpin for Query<C>
impl<C> UnsafeUnpin for Query<C>
impl<C> UnwindSafe for Query<C>where
C: RefUnwindSafe,
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