pub struct DownloadRecord {Show 13 fields
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§
§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 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 Freeze for DownloadRecord
impl RefUnwindSafe for DownloadRecord
impl Send for DownloadRecord
impl Sync for DownloadRecord
impl Unpin for DownloadRecord
impl UnsafeUnpin for DownloadRecord
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