#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
/// inline_text ::= text_char+
#[derive(Clone, Debug, PartialEq)]
#[cfg_attr(feature = "hash", derive(Eq, PartialOrd, Ord, Hash))]
#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
pub struct InlineText(String);
impl From<&str> for InlineText {
fn from(value: &str) -> Self {
Self(value.into())
}
}
impl std::fmt::Display for InlineText {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.0)
}
}