pub struct Sequence {
pub id: Option<String>,
pub children: Vec<Node>,
pub transition: Option<TransitionChoice>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub enter: Option<Motion>,
pub exit: Option<Motion>,
}Expand description
Children one after another.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
children: Vec<Node>The children, in play order.
transition: Option<TransitionChoice>What joins neighbours: a transition overlaps them by its duration.
Default none. Only single pictures (media, text, color, layout)
can transition into each other.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence.
duration: Option<f64>Length in seconds. Default: the node’s own length, else what its parent gives it.
enter: Option<Motion>How it comes in at its start.
exit: Option<Motion>How it goes out, ending at its end.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sequence
impl<'de> Deserialize<'de> for Sequence
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 Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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