feat: add video details response model
- add paginator, impl for playlist items - small model refactor - add ignore_any deserializer - removed unnecessary clones in response mapping
This commit is contained in:
parent
17b6844eb0
commit
972288d810
32 changed files with 61791 additions and 5316 deletions
12
src/error.rs
12
src/error.rs
|
|
@ -1,8 +1,7 @@
|
|||
use url;
|
||||
|
||||
/// Errors that can occur during the id extraction or the video download process.
|
||||
/// Errors that can occur during the id extraction or the video download process.
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum Error {
|
||||
/*
|
||||
#[error("the provided raw Id does not match any known Id-pattern")]
|
||||
BadIdFormat,
|
||||
#[cfg(feature = "fetch")]
|
||||
|
|
@ -41,4 +40,11 @@ pub enum Error {
|
|||
#[error("The internal channel has been closed")]
|
||||
#[cfg(feature = "callback")]
|
||||
ChannelClosed,
|
||||
*/
|
||||
#[error("paginator is exhausted")]
|
||||
PaginatorExhausted,
|
||||
|
||||
// TODO: Remove anyhow
|
||||
#[error(transparent)]
|
||||
Anyhow(#[from] anyhow::Error),
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue