pub struct Aria2FinishedTask {
pub name: String,
pub gid: String,
pub status: i32,
pub dst: String,
pub error: String,
pub total: i64,
pub files: Vec<Aria2File>,
pub task_status: i32,
pub task_error: String,
pub create: String,
pub update: String,
pub node: String,
}Expand description
Finished aria2 task as returned by GET /aria2/finished.
Cloudreve v3 emits a flattened representation here — there is no nested aria2 info,
instead the task lifecycle (task_status, task_error) and per-file completion are
surfaced directly.
Fields§
§name: String§gid: String§status: i32§dst: String§error: StringLegacy aria2-side error string. Prefer task_error for new code.
total: i64§files: Vec<Aria2File>§task_status: i32Cloudreve task lifecycle status (matches the Aria2 status int set).
task_error: String§create: StringISO-8601 creation timestamp.
update: StringISO-8601 last-update timestamp.
node: StringTrait Implementations§
Source§impl Clone for Aria2FinishedTask
impl Clone for Aria2FinishedTask
Source§fn clone(&self) -> Aria2FinishedTask
fn clone(&self) -> Aria2FinishedTask
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 Aria2FinishedTask
impl Debug for Aria2FinishedTask
Source§impl Default for Aria2FinishedTask
impl Default for Aria2FinishedTask
Source§fn default() -> Aria2FinishedTask
fn default() -> Aria2FinishedTask
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Aria2FinishedTask
impl<'de> Deserialize<'de> for Aria2FinishedTask
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 Aria2FinishedTask
impl RefUnwindSafe for Aria2FinishedTask
impl Send for Aria2FinishedTask
impl Sync for Aria2FinishedTask
impl Unpin for Aria2FinishedTask
impl UnsafeUnpin for Aria2FinishedTask
impl UnwindSafe for Aria2FinishedTask
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