pub struct Slideshow {
pub id: Option<String>,
pub items: Vec<MediaItem>,
pub seconds: Option<f64>,
pub fit_to: Option<String>,
pub transition: Option<TransitionChoice>,
pub ken_burns: Option<f32>,
pub fit: Option<Fit>,
pub at: Option<f64>,
}Expand description
Stills or clips in turn.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
items: Vec<MediaItem>The slides.
seconds: Option<f64>How long each slide shows, transitions included, in seconds. Default: fit_to’s length
shared out, else the theme’s still length.
fit_to: Option<String>A sound file whose length the slides share out. It is not played; add it as a music bed.
transition: Option<TransitionChoice>What joins slides. Default theme.
ken_burns: Option<f32>How far each slide zooms in over its time, as a multiple (1.15 ends 15% larger). Default none.
fit: Option<Fit>How slides fill the canvas. Default cover.
at: Option<f64>When it starts in its parent; its length is the slides’.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Slideshow
impl<'de> Deserialize<'de> for Slideshow
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 StructuralPartialEq for Slideshow
Auto Trait Implementations§
impl Forget for Slideshow
impl Freeze for Slideshowwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<MediaItem>: Freeze,
PhantomData<EasingPoint>: Freeze,
*const LeafNode<String, Animated<EffectValue>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Animated<EffectValue>)>>: Freeze,
impl Move for Slideshow
impl RefUnwindSafe for Slideshow
impl Send for Slideshow
impl Sync for Slideshow
impl Unpin for Slideshow
impl UnsafeUnpin for Slideshowwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<MediaItem>: UnsafeUnpin,
PhantomData<EasingPoint>: UnsafeUnpin,
*const LeafNode<String, Animated<EffectValue>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Animated<EffectValue>)>>: UnsafeUnpin,
impl UnwindSafe for Slideshowwhere
RawVecInner: UnwindSafe,
BoxRaw<Node>: UnwindSafe,
BTreeMap<String, Animated<EffectValue>>: UnwindSafe,
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