pub struct ReqwestSource { /* private fields */ }Expand description
An HTTP response body that implements AsyncDataSource.
Wraps a reqwest::Response so that remote CSV, JSON, and JSONL streams can
be profiled via the public async facade.
Implementations§
Source§impl ReqwestSource
impl ReqwestSource
Sourcepub fn new(response: Response, info: AsyncSourceInfo) -> ReqwestSource
pub fn new(response: Response, info: AsyncSourceInfo) -> ReqwestSource
Create a new source from an HTTP response and its metadata.
Trait Implementations§
Source§impl AsyncDataSource for ReqwestSource
impl AsyncDataSource for ReqwestSource
Source§fn into_async_read<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send + Unpin>>, DataProfilerError>> + Send + 'async_trait>>where
ReqwestSource: 'async_trait,
fn into_async_read<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send + Unpin>>, DataProfilerError>> + Send + 'async_trait>>where
ReqwestSource: 'async_trait,
Consume this source into an async byte reader. Read more
Source§fn source_info(&self) -> AsyncSourceInfo
fn source_info(&self) -> AsyncSourceInfo
Metadata about this source (label, format, optional size).
Auto Trait Implementations§
impl Freeze for ReqwestSource
impl !RefUnwindSafe for ReqwestSource
impl Send for ReqwestSource
impl Sync for ReqwestSource
impl Unpin for ReqwestSource
impl UnsafeUnpin for ReqwestSource
impl !UnwindSafe for ReqwestSource
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more