docx_rs/documents/elements/
instr_page.rs1use serde::Serialize;
2use std::io::Write;
3
4use crate::documents::*;
5use crate::xml_builder::XMLBuilder;
6
7#[derive(Serialize, Debug, Clone, PartialEq, Default)]
8#[serde(rename_all = "camelCase")]
9pub struct InstrPAGE {}
10
11impl InstrPAGE {
12 pub fn new() -> Self {
13 Self {}
14 }
15}
16
17impl BuildXML for InstrPAGE {
18 fn build_to<W: Write>(
19 &self,
20 stream: xml::writer::EventWriter<W>,
21 ) -> xml::writer::Result<xml::writer::EventWriter<W>> {
22 XMLBuilder::from(stream).plain_text("PAGE")?.into_inner()
23 }
24}