pub struct Logo {
pub id: Option<String>,
pub path: String,
pub corner: Option<Align>,
pub size: Option<f32>,
pub margin: Option<f32>,
pub opacity: Option<f32>,
pub at: Option<f64>,
pub duration: Option<f64>,
}Expand description
A picture in a corner.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
path: StringThe picture.
corner: Option<Align>The corner. Default top-right.
size: Option<f32>Its longer side, in pixels. Default: 15% of the canvas’s shorter side.
margin: Option<f32>Pixels from the edges. Default: the theme’s margin.
opacity: Option<f32>Opacity, 0..=1. Default 1.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence, which places its children one after another.
duration: Option<f64>Length in seconds. Default: the node’s own (a video’s, a caption file’s), else what its parent gives it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Logo
impl<'de> Deserialize<'de> for Logo
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 Logo
Auto Trait Implementations§
impl Freeze for Logo
impl RefUnwindSafe for Logo
impl Send for Logo
impl Sync for Logo
impl Unpin for Logo
impl UnsafeUnpin for Logo
impl UnwindSafe for Logo
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