pub struct GraphqlStream { /* private fields */ }Expand description
A configured GraphQL source that handles pagination and extraction.
Implementations§
Source§impl GraphqlStream
impl GraphqlStream
Sourcepub fn new(config: GraphqlStreamConfig) -> Self
pub fn new(config: GraphqlStreamConfig) -> Self
Create a new GraphQL stream from the given configuration.
Trait Implementations§
Source§impl Source for GraphqlStream
impl Source for GraphqlStream
Source§fn fetch_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, FaucetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, FaucetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all records.
Source§fn config_schema(&self) -> Value
fn config_schema(&self) -> Value
Return a JSON Schema describing the configuration this source accepts. Read more
Auto Trait Implementations§
impl Freeze for GraphqlStream
impl !RefUnwindSafe for GraphqlStream
impl Send for GraphqlStream
impl Sync for GraphqlStream
impl Unpin for GraphqlStream
impl UnsafeUnpin for GraphqlStream
impl !UnwindSafe for GraphqlStream
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