Struct dim_database::episode::InsertableEpisode
source · pub struct InsertableEpisode {
pub media: InsertableMedia,
pub seasonid: i64,
pub episode: i64,
}
Fields§
§media: InsertableMedia
§seasonid: i64
§episode: i64
Implementations§
source§impl InsertableEpisode
impl InsertableEpisode
sourcepub async fn insert(
&self,
conn: &mut Transaction<'_>
) -> Result<i64, DatabaseError>
pub async fn insert(
&self,
conn: &mut Transaction<'_>
) -> Result<i64, DatabaseError>
Method inserts a new episode into the database