pub struct Aria2File {
pub index: String,
pub path: String,
pub length: String,
pub completed_length: String,
pub selected: bool,
pub uris: Vec<Aria2FileUri>,
}Expand description
One file inside an aria2 task. For multi-file torrents Cloudreve v3 may expose more than one entry; for plain HTTP downloads there is exactly one.
Fields§
§index: String§path: String§length: String§completed_length: String§selected: boolselected arrives as a JSON string (“true”/“false”) from aria2c — Cloudreve passes
it through unchanged — but in /aria2/finished Cloudreve sometimes coerces it to a
real bool. Accept either form.
uris: Vec<Aria2FileUri>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Aria2File
impl<'de> Deserialize<'de> for Aria2File
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
Auto Trait Implementations§
impl Freeze for Aria2File
impl RefUnwindSafe for Aria2File
impl Send for Aria2File
impl Sync for Aria2File
impl Unpin for Aria2File
impl UnsafeUnpin for Aria2File
impl UnwindSafe for Aria2File
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