#[non_exhaustive]pub struct Track {
pub id: TrackId,
pub name: String,
pub kind: TrackKind,
pub clips: Vec<Clip>,
pub transitions: Vec<ClipTransition>,
pub audio: TrackAudio,
pub captions: Option<Captions>,
}Expand description
A homogeneous visual or audio timeline lane.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: TrackIdStable track identity.
name: StringUser-visible track name.
kind: TrackKindControls source compatibility and evaluation behavior.
clips: Vec<Clip>Clips on this track, in authoring order; evaluation sorts by time. A caption track has none.
transitions: Vec<ClipTransition>Explicit transitions between overlapping clips on this track.
audio: TrackAudioBus controls applied to this track’s mixed audio.
captions: Option<Captions>The cues and style of a caption track; present exactly for that kind.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Track
impl<'de> Deserialize<'de> for Track
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 Track
Auto Trait Implementations§
impl Forget for Track
impl Freeze for Trackwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Clip>: Freeze,
PhantomData<ClipTransition>: Freeze,
PhantomData<Keyframe<f32>>: Freeze,
*const DataBinding is !null: Freeze,
PhantomData<DataBinding>: Freeze,
PhantomData<AudioEffect>: Freeze,
PhantomData<GradientStop>: Freeze,
PhantomData<TextStroke>: Freeze,
PhantomData<TextShadow>: Freeze,
PhantomData<f32>: Freeze,
PhantomData<TextAnimator>: Freeze,
*const LeafNode<String, TextStylePatch> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, TextStylePatch)>>: Freeze,
PhantomData<CaptionCue>: Freeze,
impl Move for Track
impl RefUnwindSafe for Track
impl Send for Trackwhere
RawVecInner: Send,
BoxRaw<DataBinding>: 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,
impl Sync for Trackwhere
RawVecInner: Sync,
BoxRaw<DataBinding>: 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,
impl Unpin for Trackwhere
*const u8 is !null: Unpin,
Box<DataBinding>: 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,
impl UnsafeUnpin for Trackwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Clip>: UnsafeUnpin,
PhantomData<ClipTransition>: UnsafeUnpin,
PhantomData<Keyframe<f32>>: UnsafeUnpin,
*const DataBinding is !null: UnsafeUnpin,
PhantomData<DataBinding>: UnsafeUnpin,
PhantomData<AudioEffect>: UnsafeUnpin,
PhantomData<GradientStop>: UnsafeUnpin,
PhantomData<TextStroke>: UnsafeUnpin,
PhantomData<TextShadow>: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<TextAnimator>: UnsafeUnpin,
*const LeafNode<String, TextStylePatch> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, TextStylePatch)>>: UnsafeUnpin,
PhantomData<CaptionCue>: UnsafeUnpin,
impl UnwindSafe for Trackwhere
RawVecInner: UnwindSafe,
BoxRaw<DataBinding>: UnwindSafe,
BTreeMap<String, Animated<EffectValue>>: UnwindSafe,
BTreeMap<String, EffectResourceId>: UnwindSafe,
BTreeMap<String, TextStylePatch>: 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