now there are items and a bit of style to the library
This commit is contained in:
parent
929b0a33d1
commit
40580a6e7a
7 changed files with 131 additions and 9 deletions
|
@ -1,6 +1,8 @@
|
|||
use crate::{Background, SlideBuilder, TextAlignment};
|
||||
|
||||
use super::{
|
||||
content::Content,
|
||||
kinds::ServiceItemKind,
|
||||
model::{get_db, LibraryKind, Model},
|
||||
service_items::ServiceTrait,
|
||||
slide::Slide,
|
||||
|
@ -25,6 +27,16 @@ pub struct Video {
|
|||
pub looping: bool,
|
||||
}
|
||||
|
||||
impl Content for Video {
|
||||
fn title(&self) -> String {
|
||||
self.title.clone()
|
||||
}
|
||||
|
||||
fn kind(&self) -> ServiceItemKind {
|
||||
ServiceItemKind::Video(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Value> for Video {
|
||||
fn from(value: Value) -> Self {
|
||||
Self::from(&value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue