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 DataSet
impl Move for DataSet
impl RefUnwindSafe for DataSet
impl Send for DataSet
impl Sync for DataSet
impl Unpin for DataSet
impl UnsafeUnpin for DataSet
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