pub struct VideoSpec {
pub compose_version: u32,
pub name: Option<String>,
pub canvas: Canvas,
pub theme: ThemeChoice,
pub body: Node,
pub overlays: Vec<Node>,
pub audio: Vec<Node>,
pub duration: Option<f64>,
pub loudness: Option<Loudness>,
}Expand description
A whole video: a body, what is drawn over it, and what plays under it.
Fields§
§compose_version: u32Spec version. This build reads only COMPOSE_VERSION.
name: Option<String>The project’s name. Default video.
canvas: CanvasSize, rate and background. Default youtube-1080p.
theme: ThemeChoiceFonts, colors, sizes and default timings. Default clean-dark.
body: NodeThe main picture, from time zero. Its length is the video’s unless duration says
otherwise.
overlays: Vec<Node>Nodes drawn over the body in order, placed by their own at (default 0) and lasting to
the end unless they say otherwise.
audio: Vec<Node>Sound beside the body’s: audio and music_bed nodes, placed as overlays are.
duration: Option<f64>The video’s length in seconds. Default: the body’s.
loudness: Option<Loudness>The loudness an export normalizes the mix to. Returned as an export option, not stored in the project.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VideoSpec
impl<'de> Deserialize<'de> for VideoSpec
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 VideoSpec
Auto Trait Implementations§
impl Freeze for VideoSpec
impl RefUnwindSafe for VideoSpec
impl Send for VideoSpec
impl Sync for VideoSpec
impl Unpin for VideoSpec
impl UnsafeUnpin for VideoSpec
impl UnwindSafe for VideoSpec
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