pub struct DownloadFolder<P: AsRef<Path>> {
pub seasons: Vec<SeasonMetadata<P>>,
}Expand description
The download folder of Bilibili. Contains all the seasons downloaded.
Fields§
§seasons: Vec<SeasonMetadata<P>>Implementations§
Source§impl DownloadFolder<PathBuf>
impl DownloadFolder<PathBuf>
Sourcepub fn new_from_path(path: impl AsRef<Path>) -> Result<Self>
pub fn new_from_path(path: impl AsRef<Path>) -> Result<Self>
Creates a DownloadFolder from path.
Trait Implementations§
Source§impl<P: Clone + AsRef<Path>> Clone for DownloadFolder<P>
impl<P: Clone + AsRef<Path>> Clone for DownloadFolder<P>
Source§fn clone(&self) -> DownloadFolder<P>
fn clone(&self) -> DownloadFolder<P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, P> Deserialize<'de> for DownloadFolder<P>
impl<'de, P> Deserialize<'de> for DownloadFolder<P>
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<P: Ord + AsRef<Path>> Ord for DownloadFolder<P>
impl<P: Ord + AsRef<Path>> Ord for DownloadFolder<P>
Source§fn cmp(&self, other: &DownloadFolder<P>) -> Ordering
fn cmp(&self, other: &DownloadFolder<P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<P: PartialOrd + AsRef<Path>> PartialOrd for DownloadFolder<P>
impl<P: PartialOrd + AsRef<Path>> PartialOrd for DownloadFolder<P>
Source§impl<P> Serialize for DownloadFolder<P>
impl<P> Serialize for DownloadFolder<P>
impl<P: Eq + AsRef<Path>> Eq for DownloadFolder<P>
impl<P: AsRef<Path>> StructuralPartialEq for DownloadFolder<P>
Auto Trait Implementations§
impl<P> Freeze for DownloadFolder<P>
impl<P> RefUnwindSafe for DownloadFolder<P>where
P: RefUnwindSafe,
impl<P> Send for DownloadFolder<P>where
P: Send,
impl<P> Sync for DownloadFolder<P>where
P: Sync,
impl<P> Unpin for DownloadFolder<P>where
P: Unpin,
impl<P> UnwindSafe for DownloadFolder<P>where
P: UnwindSafe,
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