pub struct DownloadPreflight {
pub content_key: String,
pub title: String,
pub planned_output_dir: PathBuf,
pub archived_records: Vec<DownloadArchiveRecord>,
pub output_conflict: Option<DownloadOutputConflict>,
/* private fields */
}Fields§
§content_key: String§title: String§planned_output_dir: PathBuf§archived_records: Vec<DownloadArchiveRecord>§output_conflict: Option<DownloadOutputConflict>Implementations§
Source§impl DownloadPreflight
impl DownloadPreflight
pub fn inspect( plan: &DownloadPlan, options: &DownloadOptions, archive: Option<&DownloadArchive>, ) -> Result<Self>
pub fn requires_decision(&self) -> bool
pub const fn suggested_decision(&self) -> DuplicateDecision
pub fn output_dir_for_decision( &self, decision: DuplicateDecision, ) -> Result<PathBuf>
Trait Implementations§
Source§impl Clone for DownloadPreflight
impl Clone for DownloadPreflight
Source§fn clone(&self) -> DownloadPreflight
fn clone(&self) -> DownloadPreflight
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 DownloadPreflight
impl Debug for DownloadPreflight
Source§impl<'de> Deserialize<'de> for DownloadPreflight
impl<'de> Deserialize<'de> for DownloadPreflight
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
impl Eq for DownloadPreflight
Source§impl PartialEq for DownloadPreflight
impl PartialEq for DownloadPreflight
Source§fn eq(&self, other: &DownloadPreflight) -> bool
fn eq(&self, other: &DownloadPreflight) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DownloadPreflight
impl Serialize for DownloadPreflight
impl StructuralPartialEq for DownloadPreflight
Auto Trait Implementations§
impl Freeze for DownloadPreflight
impl RefUnwindSafe for DownloadPreflight
impl Send for DownloadPreflight
impl Sync for DownloadPreflight
impl Unpin for DownloadPreflight
impl UnsafeUnpin for DownloadPreflight
impl UnwindSafe for DownloadPreflight
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