pub struct PackageFile {
pub size: Option<i64>,
pub id: Option<i64>,
pub md5: Option<String>,
pub name: Option<String>,
pub sha1: Option<String>,
pub sha256: Option<String>,
pub sha512: Option<String>,
}
Expand description
PackageFile : PackageFile represents a package file
Fields§
§size: Option<i64>
§id: Option<i64>
§md5: Option<String>
§name: Option<String>
§sha1: Option<String>
§sha256: Option<String>
§sha512: Option<String>
Implementations§
Source§impl PackageFile
impl PackageFile
Sourcepub fn new() -> PackageFile
pub fn new() -> PackageFile
PackageFile represents a package file
Trait Implementations§
Source§impl Clone for PackageFile
impl Clone for PackageFile
Source§fn clone(&self) -> PackageFile
fn clone(&self) -> PackageFile
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 PackageFile
impl Debug for PackageFile
Source§impl Default for PackageFile
impl Default for PackageFile
Source§fn default() -> PackageFile
fn default() -> PackageFile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageFile
impl<'de> Deserialize<'de> for PackageFile
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 PackageFile
impl PartialEq for PackageFile
Source§impl Serialize for PackageFile
impl Serialize for PackageFile
impl StructuralPartialEq for PackageFile
Auto Trait Implementations§
impl Freeze for PackageFile
impl RefUnwindSafe for PackageFile
impl Send for PackageFile
impl Sync for PackageFile
impl Unpin for PackageFile
impl UnwindSafe for PackageFile
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