pub struct FileData {
pub file_name: String,
pub file_name_hash: Vec<u8>,
pub chunks: Vec<ChunkData>,
pub flags: u32,
pub total_size: u64,
pub file_hash: Vec<u8>,
pub link_target: Option<String>,
}Expand description
A single file in a manifest.
Fields§
§file_name: StringThe file name.
file_name_hash: Vec<u8>SHA-1 hash of the file name.
chunks: Vec<ChunkData>The chunks the file is made of.
flags: u32The EDepotFileFlag flags, as raw bits since a file can have several.
total_size: u64The total size of the file.
file_hash: Vec<u8>SHA-1 hash of the file.
link_target: Option<String>The symlink target, if it’s a symlink.
Implementations§
Trait Implementations§
impl Eq for FileData
impl StructuralPartialEq for FileData
Auto Trait Implementations§
impl Freeze for FileData
impl RefUnwindSafe for FileData
impl Send for FileData
impl Sync for FileData
impl Unpin for FileData
impl UnsafeUnpin for FileData
impl UnwindSafe for FileData
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.