Struct ytmapi_rs::parse::ProcessedResult
source · 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<'a, Q> ProcessedResult<'a, Q>
impl<'a, Q> ProcessedResult<'a, Q>
pub fn parse_into<O: ParseFrom<Q>>(self) -> Result<O>
Trait Implementations§
source§impl<'a, Q> From<ProcessedResult<'a, Q>> for JsonCrawlerOwned
impl<'a, Q> From<ProcessedResult<'a, 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