pub struct Packager<P: AsRef<Path>> {
pub output_path: P,
pub config: PackagerConfig,
}Expand description
Packages seasons and episodes.
Fields§
§output_path: P§config: PackagerConfigImplementations§
Source§impl<P: AsRef<Path>> Packager<P>
impl<P: AsRef<Path>> Packager<P>
Sourcepub fn set_config(self, config: PackagerConfig) -> Self
pub fn set_config(self, config: PackagerConfig) -> Self
Set config for Packager.
Sourcepub fn save_season(
&self,
season_metadata: &SeasonMetadata<impl AsRef<Path>>,
) -> Result<()>
pub fn save_season( &self, season_metadata: &SeasonMetadata<impl AsRef<Path>>, ) -> Result<()>
Package a season.
Sourcepub fn save_normal_episode(
&self,
episode_metadata: &NormalEpisodeMetadata<impl AsRef<Path>>,
) -> Result<()>
pub fn save_normal_episode( &self, episode_metadata: &NormalEpisodeMetadata<impl AsRef<Path>>, ) -> Result<()>
Package a normal episode.
Sourcepub fn save_special_episode(
&self,
episode_metadata: &SpecialEpisodeMetadata<impl AsRef<Path>>,
) -> Result<()>
pub fn save_special_episode( &self, episode_metadata: &SpecialEpisodeMetadata<impl AsRef<Path>>, ) -> Result<()>
Package a special episode.
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for Packager<P>
impl<'de, P> Deserialize<'de> for Packager<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 Packager<P>
impl<P: Ord + AsRef<Path>> Ord for Packager<P>
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 Packager<P>
impl<P: PartialOrd + AsRef<Path>> PartialOrd for Packager<P>
impl<P: Copy + AsRef<Path>> Copy for Packager<P>
impl<P: Eq + AsRef<Path>> Eq for Packager<P>
impl<P: AsRef<Path>> StructuralPartialEq for Packager<P>
Auto Trait Implementations§
impl<P> Freeze for Packager<P>where
P: Freeze,
impl<P> RefUnwindSafe for Packager<P>where
P: RefUnwindSafe,
impl<P> Send for Packager<P>where
P: Send,
impl<P> Sync for Packager<P>where
P: Sync,
impl<P> Unpin for Packager<P>where
P: Unpin,
impl<P> UnwindSafe for Packager<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