2019-12-11 07:12:22 +02:00
|
|
|
use super::*;
|
|
|
|
use docx_core;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
|
|
|
|
#[wasm_bindgen]
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct Delete(docx_core::Delete);
|
|
|
|
|
|
|
|
#[wasm_bindgen(js_name = createDelete)]
|
2019-12-19 09:37:28 +02:00
|
|
|
pub fn create_delete(run: Run) -> Delete {
|
|
|
|
Delete(docx_core::Delete::new(run.take()))
|
2019-12-11 07:12:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Delete {
|
|
|
|
pub fn take(self) -> docx_core::Delete {
|
|
|
|
self.0
|
|
|
|
}
|
2019-12-19 09:37:28 +02:00
|
|
|
|
|
|
|
pub fn author(mut self, author: String) -> Delete {
|
|
|
|
self.0.author = author;
|
|
|
|
self
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn date(mut self, date: String) -> Delete {
|
|
|
|
self.0.date = date;
|
|
|
|
self
|
|
|
|
}
|
2019-12-11 07:12:22 +02:00
|
|
|
}
|