#[non_exhaustive]pub struct Provenance {
pub revision: i32,
pub id: i32,
pub parents: Vec<Parent>,
pub type: OperationType,
/* private fields */
}Expand description
Structure to identify provenance relationships between annotations in different revisions.
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.revision: i32👎Deprecated
The index of the revision that produced this element.
id: i32👎Deprecated
The Id of this operation. Needs to be unique within the scope of the revision.
parents: Vec<Parent>References to the original elements that are replaced.
type: OperationTypeThe type of provenance operation.
Implementations§
Source§impl Provenance
impl Provenance
pub fn new() -> Self
Sourcepub fn set_revision<T: Into<i32>>(self, v: T) -> Self
👎Deprecated
pub fn set_revision<T: Into<i32>>(self, v: T) -> Self
Sets the value of revision.
Sourcepub fn set_parents<T, V>(self, v: T) -> Self
pub fn set_parents<T, V>(self, v: T) -> Self
Sets the value of parents.
Sourcepub fn set_type<T: Into<OperationType>>(self, v: T) -> Self
pub fn set_type<T: Into<OperationType>>(self, v: T) -> Self
Sets the value of r#type.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Provenance
impl Debug for Provenance
Source§impl Default for Provenance
impl Default for Provenance
Source§fn default() -> Provenance
fn default() -> Provenance
Returns the “default value” for a type. Read more
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnwindSafe for Provenance
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