pub struct Study {
pub id: String,
pub name: String,
pub duration: f64,
pub fps: u32,
pub motors: Vec<Motor>,
pub clips: Vec<Clip>,
pub interference: Interference,
pub motion: Option<Value>,
}Fields§
§id: String§name: String§duration: f64Seconds.
fps: u32Frames per second: playback, scrubbing and every output use these frames.
motors: Vec<Motor>§clips: Vec<Clip>§interference: Interference§motion: Option<Value>The published motion (the baked frames of moving occurrences), for a manufacturing-instructions step to attach. Written by the workbench.
Implementations§
Source§impl Study
impl Study
pub fn new(id: &str, name: &str) -> Self
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Frames from 0 to the duration inclusive.
Sourcepub fn frame_time(&self, index: usize) -> f64
pub fn frame_time(&self, index: usize) -> f64
The time of frame index, seconds.
pub fn motor(&self, id: &str) -> Option<&Motor>
pub fn clip(&self, id: &str) -> Option<&Clip>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Study
impl<'de> Deserialize<'de> for Study
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 Study
Auto Trait Implementations§
impl Forget for Study
impl Freeze for Study
impl RefUnwindSafe for Study
impl Send for Study
impl Sync for Study
impl Unpin for Study
impl UnsafeUnpin for Study
impl UnwindSafe for Study
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