ArchiveWriter

Trait ArchiveWriter 

Source
pub trait ArchiveWriter {
    // Required method
    fn write_entry(&mut self, name: &str, data: &[u8]) -> Result<()>;
}
Expand description

Trait for writing entries to an archive.

This trait abstracts over different ZIP backend implementations for creating 3MF files.

Required Methods§

Source

fn write_entry(&mut self, name: &str, data: &[u8]) -> Result<()>

Write data to an entry.

§Parameters
  • name: Path for the entry within the archive (e.g., "3D/3dmodel.model")
  • data: Binary content to write
§Errors

Returns Lib3mfError::Io if the entry can’t be written.

Implementors§