[−][src]Struct prima_bridge::GraphQLRequest
The GraphQLRequest is a struct that represent a GraphQL request to be done with the Bridge
Implementations
impl<'a> GraphQLRequest<'a>
[src]
pub fn new<S: Serialize>(
bridge: &'a Bridge,
graphql_body: impl Into<GraphQLBody<S>>
) -> PrimaBridgeResult<Self>
[src]
bridge: &'a Bridge,
graphql_body: impl Into<GraphQLBody<S>>
) -> PrimaBridgeResult<Self>
creates a new GraphQLRequest
Trait Implementations
impl<'a> DeliverableRequest<'a> for GraphQLRequest<'a>
[src]
pub fn raw_body(self, body: impl Into<Body>) -> Self
[src]
pub fn json_body<B: Serialize>(self, body: &B) -> PrimaBridgeResult<Self>
[src]
pub fn method(self, method: Method) -> Self
[src]
pub fn to(self, path: &'a str) -> Self
[src]
pub fn ignore_status_code(self) -> Self
[src]
pub fn set_custom_headers(self, headers: Vec<(HeaderName, HeaderValue)>) -> Self
[src]
pub fn set_query_pairs(self, query_pairs: Vec<(&'a str, &'a str)>) -> Self
[src]
pub fn get_id(&self) -> Uuid
[src]
pub fn get_bridge(&self) -> &Bridge
[src]
pub fn get_path(&self) -> Option<&str>
[src]
pub fn endpoint(&self) -> Url
[src]
pub fn get_query_pairs(&self) -> &[(&'a str, &'a str)]
[src]
pub fn get_ignore_status_code(&self) -> bool
[src]
pub fn get_method(&self) -> Method
[src]
pub fn get_custom_headers(&self) -> &[(HeaderName, HeaderValue)]
[src]
pub fn get_body(&self) -> Vec<u8>
[src]
pub fn get_request_type(&self) -> RequestType
[src]
pub fn with_custom_headers(
self,
headers: Vec<(HeaderName, HeaderValue)>
) -> Self
[src]
self,
headers: Vec<(HeaderName, HeaderValue)>
) -> Self
pub fn with_query_pair(self, name: &'a str, value: &'a str) -> Self
[src]
pub fn with_query_pairs(self, pairs: Vec<(&'a str, &'a str)>) -> Self
[src]
pub fn get_all_headers(&self) -> Vec<(HeaderName, HeaderValue)>
[src]
#[must_use]pub fn send<'async_trait>(
&'a self
) -> Pin<Box<dyn Future<Output = PrimaBridgeResult<Response>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'a self
) -> Pin<Box<dyn Future<Output = PrimaBridgeResult<Response>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: Sync + 'async_trait,
pub fn get_url(&self) -> Url
[src]
pub fn tracing_headers(&self) -> Vec<(HeaderName, HeaderValue)>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GraphQLRequest<'a>
[src]
impl<'a> Send for GraphQLRequest<'a>
[src]
impl<'a> Sync for GraphQLRequest<'a>
[src]
impl<'a> Unpin for GraphQLRequest<'a>
[src]
impl<'a> !UnwindSafe for GraphQLRequest<'a>
[src]
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> FutureExt for T
[src]
pub fn with_context(self, otel_cx: Context) -> WithContext<Self>
[src]
pub fn with_current_context(self) -> WithContext<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,