pub struct ZipDirBuilder<'a, W> { /* private fields */ }
Expand description
A builder for creating a new directory entry in a ZIP archive.
Implementations§
Source§impl<W> ZipDirBuilder<'_, W>where
W: Write,
impl<W> ZipDirBuilder<'_, W>where
W: Write,
Sourcepub fn last_modified(self, modification_time: UtcDateTime) -> Self
pub fn last_modified(self, modification_time: UtcDateTime) -> Self
Sets the modification time for the directory entry.
See ZipFileBuilder::last_modified
for details.
Sourcepub fn unix_permissions(self, permissions: u32) -> Self
pub fn unix_permissions(self, permissions: u32) -> Self
Sets the Unix permissions for the directory entry.
See ZipFileBuilder::unix_permissions
for details.
Sourcepub fn extra_field(
self,
id: ExtraFieldId,
data: &[u8],
location: Header,
) -> Result<Self, Error>
pub fn extra_field( self, id: ExtraFieldId, data: &[u8], location: Header, ) -> Result<Self, Error>
Adds an extra field to this directory entry.
See ZipFileBuilder::extra_field
for details and examples.
The same behavior notes apply: append-only, no deduplication, and automatic fields.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for ZipDirBuilder<'a, W>
impl<'a, W> RefUnwindSafe for ZipDirBuilder<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for ZipDirBuilder<'a, W>where
W: Send,
impl<'a, W> Sync for ZipDirBuilder<'a, W>where
W: Sync,
impl<'a, W> Unpin for ZipDirBuilder<'a, W>
impl<'a, W> !UnwindSafe for ZipDirBuilder<'a, W>
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