pub struct OutputFile {
pub path: String,
pub output: Vec<u8>,
}Expand description
A file for the host to write.
Fields§
§path: StringPath relative to the output directory, with / separators. It may
not leave the output directory or replace a rendered page.
output: Vec<u8>The file’s content. Sent as MessagePack bin.
Trait Implementations§
Source§impl Clone for OutputFile
impl Clone for OutputFile
Source§impl Debug for OutputFile
impl Debug for OutputFile
Source§impl Default for OutputFile
impl Default for OutputFile
Source§impl<'de> Deserialize<'de> for OutputFile
impl<'de> Deserialize<'de> for OutputFile
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
Source§impl PartialEq for OutputFile
impl PartialEq for OutputFile
Source§impl Serialize for OutputFile
impl Serialize for OutputFile
impl StructuralPartialEq for OutputFile
Auto Trait Implementations§
impl Forget for OutputFile
impl Freeze for OutputFile
impl Move for OutputFile
impl RefUnwindSafe for OutputFile
impl Send for OutputFile
impl Sync for OutputFile
impl Unpin for OutputFile
impl UnsafeUnpin for OutputFile
impl UnwindSafe for OutputFile
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