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, and their sound
crosses over it. Default none. Only single pictures (media, text, color, layout) can
transition into each other; anything else, or a part shorter than the transition,
joins by crossfade.
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 Forget for Sequence
impl Freeze for Sequencewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Node>: 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 Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequencewhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, SpeakerLook, LeafOrInternal>: Send,
BoxRaw<(String, SpeakerLook)>: Send,
BoxRaw<LayoutNode>: Send,
BoxRaw<DataBinding>: Send,
BoxRaw<MotionPath>: Send,
BoxRaw<TextStyle>: Send,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Send,
BoxRaw<(String, Animated<EffectValue>)>: Send,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Send,
BoxRaw<(String, EffectResourceId)>: Send,
NodeRef<Owned, String, TextStylePatch, LeafOrInternal>: Send,
BoxRaw<(String, TextStylePatch)>: Send,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Send,
BoxRaw<(String, Option<NodeId>)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
BoxRaw<Node>: Send,
BoxRaw<Captions>: Send,
impl Sync for Sequencewhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, SpeakerLook, LeafOrInternal>: Sync,
BoxRaw<(String, SpeakerLook)>: Sync,
BoxRaw<LayoutNode>: Sync,
BoxRaw<DataBinding>: Sync,
BoxRaw<MotionPath>: Sync,
BoxRaw<TextStyle>: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
NodeRef<Owned, String, EffectResourceId, LeafOrInternal>: Sync,
BoxRaw<(String, EffectResourceId)>: Sync,
NodeRef<Owned, String, TextStylePatch, LeafOrInternal>: Sync,
BoxRaw<(String, TextStylePatch)>: Sync,
NodeRef<Owned, String, Option<NodeId>, LeafOrInternal>: Sync,
BoxRaw<(String, Option<NodeId>)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
BoxRaw<Node>: Sync,
BoxRaw<Captions>: Sync,
impl Unpin for Sequencewhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, SpeakerLook> is !null: Unpin,
Box<(String, SpeakerLook)>: Unpin,
Box<LayoutNode>: Unpin,
Box<DataBinding>: Unpin,
Box<MotionPath>: Unpin,
Box<TextStyle>: Unpin,
*const LeafNode<String, Animated<EffectValue>> is !null: Unpin,
Box<(String, Animated<EffectValue>)>: Unpin,
*const LeafNode<String, EffectResourceId> is !null: Unpin,
Box<(String, EffectResourceId)>: Unpin,
*const LeafNode<String, TextStylePatch> is !null: Unpin,
Box<(String, TextStylePatch)>: Unpin,
*const LeafNode<String, Option<NodeId>> is !null: Unpin,
Box<(String, Option<NodeId>)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Box<Node>: Unpin,
Box<Captions>: Unpin,
impl UnsafeUnpin for Sequencewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Node>: 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 Sequencewhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, SpeakerLook>: UnwindSafe,
BoxRaw<LayoutNode>: UnwindSafe,
BoxRaw<DataBinding>: UnwindSafe,
BoxRaw<MotionPath>: UnwindSafe,
BoxRaw<TextStyle>: UnwindSafe,
BTreeMap<String, Animated<EffectValue>>: UnwindSafe,
BTreeMap<String, EffectResourceId>: UnwindSafe,
BTreeMap<String, TextStylePatch>: UnwindSafe,
BTreeMap<String, Option<NodeId>>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BoxRaw<Node>: UnwindSafe,
BoxRaw<Captions>: 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