pub struct SubtitleDownload {
pub id: String,
pub source: String,
pub release: String,
pub by: String,
pub at: i64,
pub hash_match: bool,
pub origin: SubtitleOrigin,
pub can_remove: bool,
}Expand description
A subtitle track downloaded from a subtitle site (PX-02), for everyone on the server.
Fields§
§id: StringThe download’s own id: what RemoveSubtitleDownload names.
source: StringThe site it came from, by id: opensubtitles (OpenSubtitles) or
subdl (SubDL), as SubtitleResult::source.
release: StringThe release it was made for, as the site names it.
by: StringWho downloaded it, by display name.
at: i64When, Unix seconds.
hash_match: boolIt was found by the file’s hash: made for this very release, so it was not synced.
origin: SubtitleOrigin§can_remove: boolWhether the session’s user may remove it: the one who downloaded it, or an admin.
Trait Implementations§
Source§impl Clone for SubtitleDownload
impl Clone for SubtitleDownload
Source§impl Debug for SubtitleDownload
impl Debug for SubtitleDownload
Source§impl<'de> Deserialize<'de> for SubtitleDownload
impl<'de> Deserialize<'de> for SubtitleDownload
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 SubtitleDownload
Source§impl PartialEq for SubtitleDownload
impl PartialEq for SubtitleDownload
Source§impl Serialize for SubtitleDownload
impl Serialize for SubtitleDownload
impl StructuralPartialEq for SubtitleDownload
Auto Trait Implementations§
impl Freeze for SubtitleDownload
impl RefUnwindSafe for SubtitleDownload
impl Send for SubtitleDownload
impl Sync for SubtitleDownload
impl Unpin for SubtitleDownload
impl UnsafeUnpin for SubtitleDownload
impl UnwindSafe for SubtitleDownload
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