pub struct DepositionFile {
pub id: DepositionFileId,
pub filename: String,
pub filesize: u64,
pub checksum: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
File attached to a draft deposition.
Fields§
§id: DepositionFileIdDeposition file identifier.
filename: StringOriginal filename.
filesize: u64File size in bytes.
checksum: Option<String>Reported checksum, when present.
extra: BTreeMap<String, Value>Additional untyped fields preserved for forward compatibility.
Trait Implementations§
Source§impl Clone for DepositionFile
impl Clone for DepositionFile
Source§fn clone(&self) -> DepositionFile
fn clone(&self) -> DepositionFile
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 DepositionFile
impl Debug for DepositionFile
Source§impl<'de> Deserialize<'de> for DepositionFile
impl<'de> Deserialize<'de> for DepositionFile
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 DepositionFile
impl PartialEq for DepositionFile
Source§fn eq(&self, other: &DepositionFile) -> bool
fn eq(&self, other: &DepositionFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RepositoryFile for DepositionFile
impl RepositoryFile for DepositionFile
Source§type Id = DepositionFileId
type Id = DepositionFileId
Service-specific file identifier type.
Source§fn file_id(&self) -> Option<Self::Id>
fn file_id(&self) -> Option<Self::Id>
Returns the file identifier when the service exposes one.
Source§fn size_bytes(&self) -> Option<u64>
fn size_bytes(&self) -> Option<u64>
Returns the file size in bytes when known.
Source§fn download_url(&self) -> Option<&Url>
fn download_url(&self) -> Option<&Url>
Returns the best direct download URL when one is already present on the payload.
Source§impl Serialize for DepositionFile
impl Serialize for DepositionFile
impl Eq for DepositionFile
impl StructuralPartialEq for DepositionFile
Auto Trait Implementations§
impl Freeze for DepositionFile
impl RefUnwindSafe for DepositionFile
impl Send for DepositionFile
impl Sync for DepositionFile
impl Unpin for DepositionFile
impl UnsafeUnpin for DepositionFile
impl UnwindSafe for DepositionFile
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