pub struct PackageManifestFile {
pub path: String,
pub size_bytes: u64,
}Expand description
Metadata for a regular file in a package archive.
Fields§
§path: StringPath of the file relative to the package root.
size_bytes: u64Size of the file contents in bytes.
Trait Implementations§
Source§impl Clone for PackageManifestFile
impl Clone for PackageManifestFile
Source§fn clone(&self) -> PackageManifestFile
fn clone(&self) -> PackageManifestFile
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 PackageManifestFile
impl Debug for PackageManifestFile
Source§impl<'de> Deserialize<'de> for PackageManifestFile
impl<'de> Deserialize<'de> for PackageManifestFile
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 Ord for PackageManifestFile
impl Ord for PackageManifestFile
Source§fn cmp(&self, other: &PackageManifestFile) -> Ordering
fn cmp(&self, other: &PackageManifestFile) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PackageManifestFile
impl PartialEq for PackageManifestFile
Source§fn eq(&self, other: &PackageManifestFile) -> bool
fn eq(&self, other: &PackageManifestFile) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PackageManifestFile
impl PartialOrd for PackageManifestFile
Source§impl Serialize for PackageManifestFile
impl Serialize for PackageManifestFile
impl Eq for PackageManifestFile
impl StructuralPartialEq for PackageManifestFile
Auto Trait Implementations§
impl Freeze for PackageManifestFile
impl RefUnwindSafe for PackageManifestFile
impl Send for PackageManifestFile
impl Sync for PackageManifestFile
impl Unpin for PackageManifestFile
impl UnsafeUnpin for PackageManifestFile
impl UnwindSafe for PackageManifestFile
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