pub struct DataInterval {
pub start: MediaTime,
pub end: MediaTime,
pub label: Option<String>,
pub score: Option<f32>,
}Expand description
One timed range; start == end is an instant.
Fields§
§start: MediaTimeWhen it starts, in ticks on the anchor’s clock.
end: MediaTimeWhen it ends; not before start.
label: Option<String>A free label, at most MAX_DATA_LABEL_BYTES bytes. Edit operations ignore it.
score: Option<f32>A free, finite score of at most MAX_DATA_SCALAR in magnitude; edit operations ignore it.
Trait Implementations§
Source§impl Clone for DataInterval
impl Clone for DataInterval
Source§impl Debug for DataInterval
impl Debug for DataInterval
Source§impl<'de> Deserialize<'de> for DataInterval
impl<'de> Deserialize<'de> for DataInterval
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
Source§impl PartialEq for DataInterval
impl PartialEq for DataInterval
Source§impl Serialize for DataInterval
impl Serialize for DataInterval
impl StructuralPartialEq for DataInterval
Auto Trait Implementations§
impl Forget for DataInterval
impl Freeze for DataInterval
impl Move for DataInterval
impl RefUnwindSafe for DataInterval
impl Send for DataInterval
impl Sync for DataInterval
impl Unpin for DataInterval
impl UnsafeUnpin for DataInterval
impl UnwindSafe for DataInterval
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