docx_reader/documents/elements/vanish.rs
use serde::{Deserialize, Serialize, Serializer};
#[derive(Debug, Clone, Deserialize, PartialEq)]
pub struct Vanish {}
impl Vanish {
pub fn new() -> Vanish {
Vanish {}
}
}
impl Default for Vanish {
fn default() -> Self {
Vanish {}
}
}
impl Serialize for Vanish {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
serializer.serialize_bool(true)
}
}