1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#![doc = include_str!("../README.md")]
#![deny(
    missing_docs,
    unsafe_code,
    missing_debug_implementations,
    rust_2018_idioms
)]

#[macro_use]
pub(crate) mod id;

pub mod channel;
mod client;
pub mod error;
pub mod playlist;
pub mod stream;
mod thumbnail;
pub mod video;
pub(crate) mod youtube;

pub use channel::Channel;
pub use client::Client;
pub use error::Error;
pub use playlist::Playlist;
pub use stream::Stream;
pub use thumbnail::Thumbnail;
pub use video::Video;

/// The Result type used by this library
pub type Result<T> = std::result::Result<T, Error>;