pub struct FileHeader {
pub rel_path: String,
pub size: u64,
pub mode: u32,
}Expand description
Metadata for a single file within a project archive.
Sent before the file’s raw content bytes. The receiver uses this to create the correct directory structure and allocate space.
Fields§
§rel_path: StringRelative path within the project (e.g., “src/main.rs”). Uses forward slashes regardless of platform.
size: u64File size in bytes (0 for empty files).
mode: u32Unix file mode bits (e.g., 0o644 for regular files).
Trait Implementations§
Source§impl Clone for FileHeader
impl Clone for FileHeader
Source§fn clone(&self) -> FileHeader
fn clone(&self) -> FileHeader
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 FileHeader
impl Debug for FileHeader
Source§impl<'de> Deserialize<'de> for FileHeader
impl<'de> Deserialize<'de> for FileHeader
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 FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnsafeUnpin for FileHeader
impl UnwindSafe for FileHeader
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