pub struct Mask {
pub id: Option<String>,
pub content: Box<Node>,
pub shapes: Vec<MaskShape>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
}Expand description
content shown only inside outlines, combined in order. Outlines are in the node’s area as a
shape’s are, and stay put while the content moves.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
content: Box<Node>What is shown.
shapes: Vec<MaskShape>The outlines, at least one.
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 content’s.
inset: Option<Inset>Pixels kept clear inside the parent’s area.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mask
impl<'de> Deserialize<'de> for Mask
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 Mask
Auto Trait Implementations§
impl Forget for Mask
impl Freeze for Mask
impl Move for Mask
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnsafeUnpin for Mask
impl UnwindSafe for Mask
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