pub struct ProcessedResult<'a, Q> {
pub query: &'a Q,
pub source: String,
pub json: Json,
}Expand description
A result from the api that has been checked for errors and processed into JSON.
Fields§
§query: &'a Q§source: StringThe raw string output returned from the web request to YouTube.
json: JsonThe result once it has been deserialized from Json and processed to remove errors.
Implementations§
Source§impl<Q> ProcessedResult<'_, Q>
impl<Q> ProcessedResult<'_, Q>
pub fn parse_into<O: ParseFrom<Q>>(self) -> Result<O>
Trait Implementations§
Source§impl<Q> From<ProcessedResult<'_, Q>> for JsonCrawlerOwned
impl<Q> From<ProcessedResult<'_, Q>> for JsonCrawlerOwned
Source§fn from(value: ProcessedResult<'_, Q>) -> Self
fn from(value: ProcessedResult<'_, Q>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, Q> Freeze for ProcessedResult<'a, Q>
impl<'a, Q> RefUnwindSafe for ProcessedResult<'a, Q>where
Q: RefUnwindSafe,
impl<'a, Q> Send for ProcessedResult<'a, Q>where
Q: Sync,
impl<'a, Q> Sync for ProcessedResult<'a, Q>where
Q: Sync,
impl<'a, Q> Unpin for ProcessedResult<'a, Q>
impl<'a, Q> UnwindSafe for ProcessedResult<'a, Q>where
Q: RefUnwindSafe,
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