#[non_exhaustive]pub struct EvidenceReference {
pub resource: Uri,
pub attribution: Option<Attribution>,
}Expand description
A reference to data being used to derive the given instance of Subject.
For example, an “evidence” Subject (i.e., the object holding the
EvidenceReference instance) can refer to content extracted from a source
(i.e., an “extracted” Subject) as information being used to derive the
evidence expressed in this Subject.
§Examples
An application allows a researcher to extract information from a single
census record about a person, representing the information as a persona with
an identifier “abcde”. The researcher extracts additional information about
the person from a birth certificate and the application assigns
the resulting persona an identifier “fghij”. As the researcher gathers and
analyzes the information, he will create a (working) Person conclusion.
When the researcher concludes that the person represented in “abcde” and in
“fghij” are the same person, he will add two EvidenceReference instances
to the working Person: one for “abcde” and one for “fghij”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resource: UriReference to the supporting data.
attribution: Option<Attribution>The attribution of this evidence reference. If not provided, the attribution of the containing resource of the source reference is assumed.
Implementations§
Source§impl EvidenceReference
impl EvidenceReference
pub fn new(resource: Uri, attribution: Option<Attribution>) -> Self
Trait Implementations§
Source§impl Arbitrary for EvidenceReference
impl Arbitrary for EvidenceReference
Source§impl Clone for EvidenceReference
impl Clone for EvidenceReference
Source§fn clone(&self) -> EvidenceReference
fn clone(&self) -> EvidenceReference
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EvidenceReference
impl Debug for EvidenceReference
Source§impl Default for EvidenceReference
impl Default for EvidenceReference
Source§fn default() -> EvidenceReference
fn default() -> EvidenceReference
Source§impl<'de> Deserialize<'de> for EvidenceReference
impl<'de> Deserialize<'de> for EvidenceReference
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>,
Source§impl PartialEq for EvidenceReference
impl PartialEq for EvidenceReference
Source§impl Serialize for EvidenceReference
impl Serialize for EvidenceReference
Source§impl TryFrom<&Event> for EvidenceReference
impl TryFrom<&Event> for EvidenceReference
Source§impl TryFrom<&Group> for EvidenceReference
impl TryFrom<&Group> for EvidenceReference
Source§impl TryFrom<&Person> for EvidenceReference
impl TryFrom<&Person> for EvidenceReference
Source§impl TryFrom<&PlaceDescription> for EvidenceReference
impl TryFrom<&PlaceDescription> for EvidenceReference
Source§type Error = GedcomxError
type Error = GedcomxError
Source§impl TryFrom<&Relationship> for EvidenceReference
impl TryFrom<&Relationship> for EvidenceReference
Source§type Error = GedcomxError
type Error = GedcomxError
Source§impl YaDeserialize for EvidenceReference
impl YaDeserialize for EvidenceReference
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for EvidenceReference
impl YaSerialize for EvidenceReference
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for EvidenceReference
Auto Trait Implementations§
impl Freeze for EvidenceReference
impl RefUnwindSafe for EvidenceReference
impl Send for EvidenceReference
impl Sync for EvidenceReference
impl Unpin for EvidenceReference
impl UnwindSafe for EvidenceReference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)