pub struct HttpEntityResolver { /* private fields */ }Expand description
HTTP entity resolver
Implementations§
Source§impl HttpEntityResolver
impl HttpEntityResolver
Sourcepub fn new(config: HttpClientConfig) -> Self
pub fn new(config: HttpClientConfig) -> Self
Create a new HTTP entity resolver
Sourcepub async fn resolve_entities(
&self,
subgraph_url: &str,
representations: &[EntityRepresentation],
selection: &FieldSelection,
) -> Result<Vec<Option<Value>>>
pub async fn resolve_entities( &self, subgraph_url: &str, representations: &[EntityRepresentation], selection: &FieldSelection, ) -> Result<Vec<Option<Value>>>
Resolve entities via HTTP _entities query
Sourcepub async fn resolve_entities_with_tracing(
&self,
subgraph_url: &str,
representations: &[EntityRepresentation],
selection: &FieldSelection,
_trace_context: Option<FederationTraceContext>,
) -> Result<Vec<Option<Value>>>
pub async fn resolve_entities_with_tracing( &self, subgraph_url: &str, representations: &[EntityRepresentation], selection: &FieldSelection, _trace_context: Option<FederationTraceContext>, ) -> Result<Vec<Option<Value>>>
Resolve entities via HTTP _entities query with optional distributed tracing.
Trait Implementations§
Source§impl Clone for HttpEntityResolver
impl Clone for HttpEntityResolver
Source§fn clone(&self) -> HttpEntityResolver
fn clone(&self) -> HttpEntityResolver
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 Freeze for HttpEntityResolver
impl !RefUnwindSafe for HttpEntityResolver
impl Send for HttpEntityResolver
impl Sync for HttpEntityResolver
impl Unpin for HttpEntityResolver
impl UnsafeUnpin for HttpEntityResolver
impl !UnwindSafe for HttpEntityResolver
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