pub struct DataSet {
pub id: DataSetId,
pub anchor: DataAnchor,
pub values: DataValues,
pub made_by: Option<MadeBy>,
pub made_from: Option<MediaFingerprint>,
}Expand description
Values derived from media, anchored to a source or to the timeline.
Fields§
§id: DataSetIdStable identity; at most MAX_DATA_ID_BYTES bytes.
anchor: DataAnchorThe clock the times are on.
values: DataValuesThe values.
made_by: Option<MadeBy>Which extractor made it.
made_from: Option<MediaFingerprint>The original source’s fingerprint when the data was made; absent for timeline anchors. Hosts compare it with the source’s current one to report stale data.
Implementations§
Source§impl DataSet
impl DataSet
Sourcepub fn validate(&self) -> Result<(), DataProblem>
pub fn validate(&self) -> Result<(), DataProblem>
Checks the set on its own against the model’s rules (everything but its anchor’s
existence). A time past its source’s recorded duration is not an invalid set but stale
data, which crate::Project::lint reports, since a host may replace the duration.
§Errors
The first DataProblem found.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataSet
impl<'de> Deserialize<'de> for DataSet
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DataSet
Auto Trait Implementations§
impl Forget for DataSet
impl Freeze for DataSetwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<MediaTime>: Freeze,
PhantomData<Option<f32>>: Freeze,
PhantomData<DataWord>: Freeze,
PhantomData<DataInterval>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SuppliedFile>: Freeze,
impl Move for DataSet
impl RefUnwindSafe for DataSet
impl Send for DataSet
impl Sync for DataSet
impl Unpin for DataSet
impl UnsafeUnpin for DataSetwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MediaTime>: UnsafeUnpin,
PhantomData<Option<f32>>: UnsafeUnpin,
PhantomData<DataWord>: UnsafeUnpin,
PhantomData<DataInterval>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SuppliedFile>: UnsafeUnpin,
impl UnwindSafe for DataSet
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