pub struct DownloadRecord {Show 16 fields
pub native_guid: Option<String>,
pub native_complete: bool,
pub sha256: Option<String>,
pub id: String,
pub tab_id: String,
pub state: DownloadState,
pub output: String,
pub published_path: Option<String>,
pub staging_path: Option<String>,
pub received_bytes: u64,
pub total_bytes: Option<u64>,
pub suggested_filename: Option<String>,
pub source_url: Option<String>,
pub created_at_ms: u64,
pub updated_at_ms: u64,
pub error: Option<ErrorDetail>,
}Fields§
§native_guid: Option<String>§native_complete: bool§sha256: Option<String>§id: String§tab_id: String§state: DownloadState§output: String§published_path: Option<String>§staging_path: Option<String>§received_bytes: u64§total_bytes: Option<u64>§suggested_filename: Option<String>§source_url: Option<String>§created_at_ms: u64§updated_at_ms: u64§error: Option<ErrorDetail>Trait Implementations§
Source§impl Clone for DownloadRecord
impl Clone for DownloadRecord
Source§impl Debug for DownloadRecord
impl Debug for DownloadRecord
Source§impl<'de> Deserialize<'de> for DownloadRecord
impl<'de> Deserialize<'de> for DownloadRecord
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
Source§impl From<DownloadRecord> for DownloadResult
impl From<DownloadRecord> for DownloadResult
Source§fn from(download: DownloadRecord) -> Self
fn from(download: DownloadRecord) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for DownloadRecord
impl JsonSchema for DownloadRecord
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for DownloadRecord
impl Freeze for DownloadRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ErrorContext is !null: Freeze,
PhantomData<ErrorContext>: Freeze,
impl Move for DownloadRecord
impl RefUnwindSafe for DownloadRecord
impl Send for DownloadRecord
impl Sync for DownloadRecord
impl Unpin for DownloadRecord
impl UnsafeUnpin for DownloadRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ErrorContext is !null: UnsafeUnpin,
PhantomData<ErrorContext>: UnsafeUnpin,
impl UnwindSafe for DownloadRecord
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