docx_reader/documents/elements/character_spacing.rs
use serde::*;
#[derive(Debug, Clone, Deserialize, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct CharacterSpacing {
value: i32,
}
impl CharacterSpacing {
pub fn new(s: i32) -> CharacterSpacing {
Self { value: s }
}
}
impl Serialize for CharacterSpacing {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
serializer.serialize_i32(self.value)
}
}