Struct hive_asar::header::FileMetadata
source · [−]pub struct FileMetadata {
pub pos: FilePosition,
pub size: u64,
pub executable: bool,
pub integrity: Option<Integrity>,
}Expand description
Metadata of a file.
Fields
pos: FilePositionWhere the file is located.
size: u64The file’s size.
According to official repository, this field should not be larger than
9007199254740991, which is JavaScript’s Number.MAX_SAFE_INTEGER and
about 8PB in size.
executable: boolWhether the file is an executable.
integrity: Option<Integrity>Optional integrity information of the file.
Trait Implementations
sourceimpl Clone for FileMetadata
impl Clone for FileMetadata
sourcefn clone(&self) -> FileMetadata
fn clone(&self) -> FileMetadata
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FileMetadata
impl Debug for FileMetadata
sourceimpl<'de> Deserialize<'de> for FileMetadata
impl<'de> Deserialize<'de> for FileMetadata
sourcefn 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
sourceimpl Serialize for FileMetadata
impl Serialize for FileMetadata
Auto Trait Implementations
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin for FileMetadata
impl UnwindSafe for FileMetadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more