pub enum SubtitleFormat {
Json,
Ssa,
Srt,
Vtt,
}Expand description
Format of the subtitle. Though Bilibili only uses SSA and JSON.
Variants§
Implementations§
Source§impl SubtitleFormat
impl SubtitleFormat
Sourcepub fn get_episode_subtitle_type(
episode: &EpisodeMetadata<impl AsRef<Path>>,
subtitle_language: &str,
) -> Result<Self>
pub fn get_episode_subtitle_type( episode: &EpisodeMetadata<impl AsRef<Path>>, subtitle_language: &str, ) -> Result<Self>
Get the subtitle format of an episode.
Sourcepub fn get_normal_episode_subtitle_type(
episode: &NormalEpisodeMetadata<impl AsRef<Path>>,
subtitle_language: &str,
) -> Result<Self>
pub fn get_normal_episode_subtitle_type( episode: &NormalEpisodeMetadata<impl AsRef<Path>>, subtitle_language: &str, ) -> Result<Self>
Get the subtitle format of a normal episode.
Sourcepub fn get_special_episode_subtitle_type(
episode: &SpecialEpisodeMetadata<impl AsRef<Path>>,
subtitle_language: &str,
) -> Result<Self>
pub fn get_special_episode_subtitle_type( episode: &SpecialEpisodeMetadata<impl AsRef<Path>>, subtitle_language: &str, ) -> Result<Self>
Get the subtitle format of a special episode.
Trait Implementations§
Source§impl Clone for SubtitleFormat
impl Clone for SubtitleFormat
Source§fn clone(&self) -> SubtitleFormat
fn clone(&self) -> SubtitleFormat
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 Debug for SubtitleFormat
impl Debug for SubtitleFormat
Source§impl Default for SubtitleFormat
impl Default for SubtitleFormat
Source§fn default() -> SubtitleFormat
fn default() -> SubtitleFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubtitleFormat
impl<'de> Deserialize<'de> for SubtitleFormat
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 Ord for SubtitleFormat
impl Ord for SubtitleFormat
Source§fn cmp(&self, other: &SubtitleFormat) -> Ordering
fn cmp(&self, other: &SubtitleFormat) -> 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 PartialEq for SubtitleFormat
impl PartialEq for SubtitleFormat
Source§impl PartialOrd for SubtitleFormat
impl PartialOrd for SubtitleFormat
Source§impl Serialize for SubtitleFormat
impl Serialize for SubtitleFormat
impl Copy for SubtitleFormat
impl Eq for SubtitleFormat
impl StructuralPartialEq for SubtitleFormat
Auto Trait Implementations§
impl Freeze for SubtitleFormat
impl RefUnwindSafe for SubtitleFormat
impl Send for SubtitleFormat
impl Sync for SubtitleFormat
impl Unpin for SubtitleFormat
impl UnwindSafe for SubtitleFormat
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