#[non_exhaustive]pub enum ResourceType {
Collection,
PhysicalArtifact,
DigitalArtifact,
Record,
Custom(Uri),
}Expand description
Standard resource types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Collection
A collection of genealogical resources. A collection may contain physical artifacts (such as a collection of books in a library), records (such as the 1940 U.S. Census), or digital artifacts (such as an online genealogical application).
PhysicalArtifact
A physical artifact, such as a book.
DigitalArtifact
A digital artifact, such as a digital image of a birth certificate or other record.
Record
A historical record, such as a census record or a vital record.
Custom(Uri)
Trait Implementations§
Source§impl Arbitrary for ResourceType
impl Arbitrary for ResourceType
Source§impl Clone for ResourceType
impl Clone for ResourceType
Source§fn clone(&self) -> ResourceType
fn clone(&self) -> ResourceType
Returns a copy 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 ResourceType
impl Debug for ResourceType
Source§impl Default for ResourceType
impl Default for ResourceType
Source§impl<'de> Deserialize<'de> for ResourceType
impl<'de> Deserialize<'de> for ResourceType
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 Display for ResourceType
impl Display for ResourceType
Source§impl PartialEq for ResourceType
impl PartialEq for ResourceType
Source§impl Serialize for ResourceType
impl Serialize for ResourceType
Source§impl YaDeserialize for ResourceType
impl YaDeserialize for ResourceType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for ResourceType
impl YaSerialize for ResourceType
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, attributes: Vec<OwnedAttribute>, namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for ResourceType
impl StructuralPartialEq for ResourceType
Auto Trait Implementations§
impl Freeze for ResourceType
impl RefUnwindSafe for ResourceType
impl Send for ResourceType
impl Sync for ResourceType
impl Unpin for ResourceType
impl UnwindSafe for ResourceType
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)