pub struct ProvenanceSource {
pub id: String,
pub path: Option<String>,
pub uri: Option<String>,
pub media_type: Option<String>,
pub hash: Option<String>,
pub size_bytes: Option<u64>,
pub title: Option<String>,
pub created_at: Option<String>,
pub retrieved_at: Option<String>,
}Expand description
A source document, dataset, or external resource used to produce package content.
Fields§
§id: StringStable source id.
path: Option<String>Optional packaged source path.
uri: Option<String>Optional original or external URI.
media_type: Option<String>Optional media type.
hash: Option<String>Optional integrity hash.
size_bytes: Option<u64>Optional expected size in bytes.
title: Option<String>Optional display title.
created_at: Option<String>Optional source creation timestamp.
retrieved_at: Option<String>Optional source retrieval timestamp.
Trait Implementations§
Source§impl Clone for ProvenanceSource
impl Clone for ProvenanceSource
Source§impl Debug for ProvenanceSource
impl Debug for ProvenanceSource
Source§impl<'de> Deserialize<'de> for ProvenanceSource
impl<'de> Deserialize<'de> for ProvenanceSource
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
impl Eq for ProvenanceSource
Source§impl PartialEq for ProvenanceSource
impl PartialEq for ProvenanceSource
Source§impl Serialize for ProvenanceSource
impl Serialize for ProvenanceSource
impl StructuralPartialEq for ProvenanceSource
Auto Trait Implementations§
impl Freeze for ProvenanceSource
impl RefUnwindSafe for ProvenanceSource
impl Send for ProvenanceSource
impl Sync for ProvenanceSource
impl Unpin for ProvenanceSource
impl UnsafeUnpin for ProvenanceSource
impl UnwindSafe for ProvenanceSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.