pub struct GraphqlResponse { /* private fields */ }
Implementations§
Source§impl GraphqlResponse
impl GraphqlResponse
pub async fn from_resp(resp: ReqwestResponse) -> Result<Self, ClientError>
pub fn graphql_version(&self) -> Result<String, ClientError>
pub fn response_body(&self) -> &Response
pub fn response_body_json(&self) -> Value
pub fn response_body_json_pretty(&self) -> String
pub fn http_status(&self) -> StatusCode
pub fn http_version(&self) -> Version
pub fn http_headers(&self) -> HeaderMap
Sourcepub fn http_headers_without_date(&self) -> HeaderMap
pub fn http_headers_without_date(&self) -> HeaderMap
Returns the HTTP headers without the Date
header.
The Date
header is removed because it is not deterministic.
pub fn remote_address(&self) -> Option<SocketAddr>
pub fn errors(&self) -> Vec<ServerError>
pub fn usage(&self) -> Result<Option<BTreeMap<String, u64>>, ClientError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GraphqlResponse
impl !RefUnwindSafe for GraphqlResponse
impl Send for GraphqlResponse
impl Sync for GraphqlResponse
impl Unpin for GraphqlResponse
impl !UnwindSafe for GraphqlResponse
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