pub struct FileInfo {
pub filename: String,
pub url: String,
pub size: Option<u64>,
pub digests: FileDigests,
pub packagetype: String,
pub requires_python: Option<String>,
pub yanked: bool,
pub yanked_reason: Option<String>,
}Expand description
Information about a release file
Fields§
§filename: StringFilename (e.g., “requests-2.28.0-py3-none-any.whl”)
url: StringDownload URL
size: Option<u64>File size in bytes
digests: FileDigestsFile digests (hashes)
packagetype: StringPackage type (sdist, bdist_wheel, etc.)
requires_python: Option<String>Python version requirement for this file
yanked: boolWhether the file has been yanked
yanked_reason: Option<String>Reason for yanking (if yanked)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileInfo
impl<'de> Deserialize<'de> for FileInfo
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
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnwindSafe for FileInfo
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