pub struct ZipDocumentWriter<W: Write + Seek> { /* private fields */ }Implementations§
Source§impl<W: Write + Seek> ZipDocumentWriter<W>
impl<W: Write + Seek> ZipDocumentWriter<W>
pub fn new(w: W) -> Result<Self>
pub fn manifest(&self) -> &Value
pub fn manifest_mut(&mut self) -> &mut Value
pub fn set_manifest(&mut self, manifest: Value) -> &mut Self
pub fn add_json(&mut self, name: &str, value: &Value) -> Result<()>
pub fn add_stored(&mut self, name: &str, bytes: &[u8]) -> Result<()>
pub fn add_plugin_state( &mut self, plugin_name: &str, state_data: &[u8], ) -> Result<()>
pub fn add_plugin_states<I>(&mut self, plugin_states: I) -> Result<()>
pub fn add_deflated(&mut self, name: &str, bytes: &[u8]) -> Result<()>
pub fn finalize(self) -> Result<W>
Auto Trait Implementations§
impl<W> Freeze for ZipDocumentWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for ZipDocumentWriter<W>where
W: RefUnwindSafe,
impl<W> Send for ZipDocumentWriter<W>where
W: Send,
impl<W> Sync for ZipDocumentWriter<W>where
W: Sync,
impl<W> Unpin for ZipDocumentWriter<W>where
W: Unpin,
impl<W> UnwindSafe for ZipDocumentWriter<W>where
W: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more