#[non_exhaustive]pub struct EditAtom {
pub key: String,
pub inputs: Vec<String>,
pub end_time_offset: Option<Duration>,
pub start_time_offset: Option<Duration>,
/* private fields */
}
Expand description
Edit atom.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key: String
A unique key for this atom. Must be specified when using advanced mapping.
inputs: Vec<String>
List of Input.key values
identifying files that should be used in this atom. The listed inputs
must have the same timeline.
end_time_offset: Option<Duration>
End time in seconds for the atom, relative to the input file timeline.
When end_time_offset
is not specified, the inputs
are used until
the end of the atom.
start_time_offset: Option<Duration>
Start time in seconds for the atom, relative to the input file timeline.
The default is 0s
.
Implementations§
Source§impl EditAtom
impl EditAtom
pub fn new() -> Self
Sourcepub fn set_inputs<T, V>(self, v: T) -> Self
pub fn set_inputs<T, V>(self, v: T) -> Self
Sets the value of inputs.
Sourcepub fn set_end_time_offset<T>(self, v: T) -> Self
pub fn set_end_time_offset<T>(self, v: T) -> Self
Sets the value of end_time_offset.
Sourcepub fn set_or_clear_end_time_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_time_offset.
Sourcepub fn set_start_time_offset<T>(self, v: T) -> Self
pub fn set_start_time_offset<T>(self, v: T) -> Self
Sets the value of start_time_offset.
Sourcepub fn set_or_clear_start_time_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time_offset.
Trait Implementations§
impl StructuralPartialEq for EditAtom
Auto Trait Implementations§
impl Freeze for EditAtom
impl RefUnwindSafe for EditAtom
impl Send for EditAtom
impl Sync for EditAtom
impl Unpin for EditAtom
impl UnwindSafe for EditAtom
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