refactor!: refactored response models
doc: documented all public methods
This commit is contained in:
parent
4c1876cb55
commit
f526ab38eb
37 changed files with 600 additions and 255 deletions
|
|
@ -4,7 +4,13 @@ use crate::model::AudioCodec;
|
|||
|
||||
use super::{AudioStream, VideoStream};
|
||||
|
||||
/// Trait for ordering YouTube video/audio streams by quality
|
||||
///
|
||||
/// analogous to [`std::cmp::Ord`]
|
||||
pub trait QualityOrd {
|
||||
/// Compare two streams by quality
|
||||
///
|
||||
/// analogous to [`std::cmp::Ord::cmp`]
|
||||
fn quality_cmp(&self, other: &Self) -> Ordering;
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue