pub enum Canvas {
Preset(String),
Custom(CustomCanvas),
}Expand description
The canvas: a preset name, or its parts.
Variants§
Preset(String)
A preset at 30 fps: youtube-1080p (1920x1080), youtube-4k (3840x2160), youtube-720p
(1280x720), shorts (1080x1920), square (1080x1080) or portrait (1080x1350).
Custom(CustomCanvas)
A preset with some parts replaced, or every part given.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Canvas
impl<'de> Deserialize<'de> for Canvas
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Canvas
Auto Trait Implementations§
impl Freeze for Canvas
impl RefUnwindSafe for Canvas
impl Send for Canvas
impl Sync for Canvas
impl Unpin for Canvas
impl UnsafeUnpin for Canvas
impl UnwindSafe for Canvas
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