2019-12-11 07:12:22 +02:00
|
|
|
use super::*;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
|
|
|
|
#[wasm_bindgen]
|
|
|
|
#[derive(Debug)]
|
2020-01-24 12:44:43 +02:00
|
|
|
pub struct Delete(docx_rs::Delete);
|
2019-12-11 07:12:22 +02:00
|
|
|
|
|
|
|
#[wasm_bindgen(js_name = createDelete)]
|
2019-12-19 09:37:28 +02:00
|
|
|
pub fn create_delete(run: Run) -> Delete {
|
2020-01-24 12:44:43 +02:00
|
|
|
Delete(docx_rs::Delete::new(run.take()))
|
2019-12-11 07:12:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Delete {
|
2020-01-24 12:44:43 +02:00
|
|
|
pub fn take(self) -> docx_rs::Delete {
|
2019-12-11 07:12:22 +02:00
|
|
|
self.0
|
|
|
|
}
|
2019-12-20 11:02:00 +02:00
|
|
|
}
|
2019-12-19 09:37:28 +02:00
|
|
|
|
2019-12-20 11:02:00 +02:00
|
|
|
#[wasm_bindgen]
|
|
|
|
impl Delete {
|
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
|
|
|
}
|