pub struct RecordStats {
pub downloads: Option<u64>,
pub views: Option<u64>,
pub extra: BTreeMap<String, Value>,
}Expand description
Basic record usage statistics.
Fields§
§downloads: Option<u64>Number of downloads, when Zenodo reports it.
views: Option<u64>Number of views, when Zenodo reports it.
extra: BTreeMap<String, Value>Additional untyped fields preserved for forward compatibility.
Trait Implementations§
Source§impl Clone for RecordStats
impl Clone for RecordStats
Source§fn clone(&self) -> RecordStats
fn clone(&self) -> RecordStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RecordStats
impl Debug for RecordStats
Source§impl Default for RecordStats
impl Default for RecordStats
Source§fn default() -> RecordStats
fn default() -> RecordStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RecordStats
impl<'de> Deserialize<'de> for RecordStats
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 PartialEq for RecordStats
impl PartialEq for RecordStats
Source§fn eq(&self, other: &RecordStats) -> bool
fn eq(&self, other: &RecordStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RecordStats
impl Serialize for RecordStats
impl Eq for RecordStats
impl StructuralPartialEq for RecordStats
Auto Trait Implementations§
impl Freeze for RecordStats
impl RefUnwindSafe for RecordStats
impl Send for RecordStats
impl Sync for RecordStats
impl Unpin for RecordStats
impl UnsafeUnpin for RecordStats
impl UnwindSafe for RecordStats
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