pub struct Aria2DownloadInfo {Show 20 fields
pub gid: String,
pub status: String,
pub total_length: String,
pub completed_length: String,
pub upload_length: String,
pub bitfield: String,
pub download_speed: String,
pub upload_speed: String,
pub info_hash: String,
pub num_seeders: String,
pub seeder: String,
pub piece_length: String,
pub num_pieces: String,
pub connections: String,
pub error_code: String,
pub error_message: String,
pub belongs_to: String,
pub dir: String,
pub files: Vec<Aria2File>,
pub bittorrent: Option<Value>,
}Expand description
Aria2 download progress info as reported by aria2c JSON-RPC, surfaced verbatim by
Cloudreve v3 inside the info field of /aria2/downloading items. All fields are
strings because aria2 itself emits them that way; consumers typically parse on demand.
Fields§
§gid: String§status: String§total_length: String§completed_length: String§upload_length: String§bitfield: String§download_speed: String§upload_speed: String§info_hash: String§num_seeders: String§seeder: String§piece_length: String§num_pieces: String§connections: String§error_code: String§error_message: String§belongs_to: String§dir: String§files: Vec<Aria2File>§bittorrent: Option<Value>Trait Implementations§
Source§impl Clone for Aria2DownloadInfo
impl Clone for Aria2DownloadInfo
Source§fn clone(&self) -> Aria2DownloadInfo
fn clone(&self) -> Aria2DownloadInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Aria2DownloadInfo
impl Debug for Aria2DownloadInfo
Source§impl Default for Aria2DownloadInfo
impl Default for Aria2DownloadInfo
Source§fn default() -> Aria2DownloadInfo
fn default() -> Aria2DownloadInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Aria2DownloadInfo
impl<'de> Deserialize<'de> for Aria2DownloadInfo
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 Aria2DownloadInfo
impl RefUnwindSafe for Aria2DownloadInfo
impl Send for Aria2DownloadInfo
impl Sync for Aria2DownloadInfo
impl Unpin for Aria2DownloadInfo
impl UnsafeUnpin for Aria2DownloadInfo
impl UnwindSafe for Aria2DownloadInfo
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