pub struct StoredMedia {Show 25 fields
pub id: i64,
pub media_kind: MediaKind,
pub title_display: String,
pub title_romaji: Option<String>,
pub title_english: Option<String>,
pub title_native: Option<String>,
pub synopsis: Option<String>,
pub format: Option<String>,
pub status: Option<String>,
pub season: Option<String>,
pub season_year: Option<i32>,
pub episodes: Option<i32>,
pub chapters: Option<i32>,
pub volumes: Option<i32>,
pub country_of_origin: Option<String>,
pub cover_image: Option<String>,
pub banner_image: Option<String>,
pub provider_rating: Option<f64>,
pub nsfw: bool,
pub aliases: Vec<String>,
pub genres: Vec<String>,
pub tags: Vec<String>,
pub external_ids: Vec<ExternalId>,
pub source_payloads: Vec<SourcePayload>,
pub field_provenance: Vec<FieldProvenance>,
}Expand description
A media record as persisted in the local SQLite database.
Returned by crate::db::AnimeDb::get_media and repository lookups. In addition to
the canonical fields it carries fully-resolved external_ids,
source_payloads, and field_provenance loaded from SQLite.
Fields§
§id: i64§media_kind: MediaKind§title_display: String§title_romaji: Option<String>§title_english: Option<String>§title_native: Option<String>§synopsis: Option<String>§format: Option<String>§status: Option<String>§season: Option<String>§season_year: Option<i32>§episodes: Option<i32>§chapters: Option<i32>§volumes: Option<i32>§country_of_origin: Option<String>§cover_image: Option<String>§provider_rating: Option<f64>§nsfw: bool§aliases: Vec<String>§genres: Vec<String>§external_ids: Vec<ExternalId>§source_payloads: Vec<SourcePayload>§field_provenance: Vec<FieldProvenance>Implementations§
Trait Implementations§
Source§impl Clone for StoredMedia
impl Clone for StoredMedia
Source§fn clone(&self) -> StoredMedia
fn clone(&self) -> StoredMedia
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 StoredMedia
impl Debug for StoredMedia
Source§impl<'de> Deserialize<'de> for StoredMedia
impl<'de> Deserialize<'de> for StoredMedia
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 PartialEq for StoredMedia
impl PartialEq for StoredMedia
Source§fn eq(&self, other: &StoredMedia) -> bool
fn eq(&self, other: &StoredMedia) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StoredMedia
impl Serialize for StoredMedia
impl StructuralPartialEq for StoredMedia
Auto Trait Implementations§
impl Freeze for StoredMedia
impl RefUnwindSafe for StoredMedia
impl Send for StoredMedia
impl Sync for StoredMedia
impl Unpin for StoredMedia
impl UnsafeUnpin for StoredMedia
impl UnwindSafe for StoredMedia
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