pub struct RsRequest {Show 27 fields
pub upload_id: Option<String>,
pub url: String,
pub mime: Option<String>,
pub size: Option<u64>,
pub filename: Option<String>,
pub status: RsRequestStatus,
pub permanent: bool,
pub json_body: Option<Value>,
pub method: RsRequestMethod,
pub referer: Option<String>,
pub headers: Option<Vec<(String, String)>>,
pub cookies: Option<Vec<RsCookie>>,
pub files: Option<Vec<RsRequestFiles>>,
pub selected_file: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub people: Option<Vec<String>>,
pub albums: Option<Vec<String>>,
pub season: Option<u32>,
pub episode: Option<u32>,
pub language: Option<String>,
pub resolution: Option<RsResolution>,
pub video_format: Option<RsVideoFormat>,
pub videocodec: Option<RsVideoCodec>,
pub audio: Option<Vec<RsAudio>>,
pub quality: Option<u64>,
pub ignore_origin_duplicate: bool,
}
Fields§
§upload_id: Option<String>
§url: String
§mime: Option<String>
§size: Option<u64>
§filename: Option<String>
§status: RsRequestStatus
§permanent: bool
If true this request can be saved for later use and will remain valid If Permanent is true but status is intermediate the process will go through request plugins to try to get a permanant link
json_body: Option<Value>
§method: RsRequestMethod
§referer: Option<String>
§headers: Option<Vec<(String, String)>>
some downloader like YTDL require detailed cookies. You can create Header equivalent with headers
fn on the vector
files: Option<Vec<RsRequestFiles>>
If must choose between multiple files. Recall plugin with a selected_file
containing one of the name in this list to get link
selected_file: Option<String>
one of the files
selected for download
description: Option<String>
§people: Option<Vec<String>>
§albums: Option<Vec<String>>
§season: Option<u32>
§episode: Option<u32>
§language: Option<String>
§resolution: Option<RsResolution>
§video_format: Option<RsVideoFormat>
§videocodec: Option<RsVideoCodec>
§audio: Option<Vec<RsAudio>>
§quality: Option<u64>
§ignore_origin_duplicate: bool
Implementations§
Source§impl RsRequest
impl RsRequest
pub fn filename_or_extract_from_url(&self) -> Option<String>
pub fn parse_filename(&mut self)
pub fn parse_subfilenames(&mut self)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RsRequest
impl<'de> Deserialize<'de> for RsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RsRequest
Auto Trait Implementations§
impl Freeze for RsRequest
impl RefUnwindSafe for RsRequest
impl Send for RsRequest
impl Sync for RsRequest
impl Unpin for RsRequest
impl UnwindSafe for RsRequest
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