Struct database::episode::InsertableEpisode
source · [−]pub struct InsertableEpisode {
pub media: InsertableMedia,
pub seasonid: i64,
pub episode: i64,
}
Fields
media: InsertableMedia
seasonid: i64
episode: i64
Implementations
sourceimpl 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InsertableEpisode
impl Send for InsertableEpisode
impl Sync for InsertableEpisode
impl Unpin for InsertableEpisode
impl UnwindSafe for InsertableEpisode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more