Struct rafy::Stream
[−]
[src]
pub struct Stream { pub extension: String, pub quality: String, pub url: String, // some fields omitted }
After creating a Stream
struct, you can either download it or view more details about it.
Examples
extern crate rafy; use rafy::Rafy; let content = Rafy::new("https://www.youtube.com/watch?v=DjMkfARvGE8"); for stream in content.streams { println!("{}", stream.extension); stream.download(); }
Fields
extension: String
The extension of the stream
quality: String
The quality of the stream
url: String
The url of the stream