pub struct ComparisonGrid {
pub id: Option<String>,
pub items: Vec<MediaItem>,
pub columns: Option<u32>,
pub gap: f32,
pub length: GridLength,
pub audio_from: Option<u32>,
pub at: Option<f64>,
pub duration: Option<f64>,
}Expand description
Clips in a labeled grid.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
items: Vec<MediaItem>The clips, row by row; each one’s label names its cell.
columns: Option<u32>Columns. Default: as square a grid as the items make.
gap: f32Pixels between cells.
length: GridLengthHow long the grid lasts when its clips differ. Default shortest.
audio_from: Option<u32>Which item’s sound plays, by index. Default: none.
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.
Trait Implementations§
Source§impl Clone for ComparisonGrid
impl Clone for ComparisonGrid
Source§impl Debug for ComparisonGrid
impl Debug for ComparisonGrid
Source§impl<'de> Deserialize<'de> for ComparisonGrid
impl<'de> Deserialize<'de> for ComparisonGrid
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
Source§impl PartialEq for ComparisonGrid
impl PartialEq for ComparisonGrid
Source§impl Serialize for ComparisonGrid
impl Serialize for ComparisonGrid
impl StructuralPartialEq for ComparisonGrid
Auto Trait Implementations§
impl Freeze for ComparisonGrid
impl RefUnwindSafe for ComparisonGrid
impl Send for ComparisonGrid
impl Sync for ComparisonGrid
impl Unpin for ComparisonGrid
impl UnsafeUnpin for ComparisonGrid
impl UnwindSafe for ComparisonGrid
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