pub enum Title {
Single(String),
Structured(StructuredTitle),
Multilingual(MultilingualComplex),
Multi(Vec<(LangID, String)>),
MultiStructured(Vec<(LangID, StructuredTitle)>),
Shorthand(String, String),
}Expand description
A title can be a single string, a structured title, or a multilingual title.
Variants§
Single(String)
A title in a single language.
Structured(StructuredTitle)
A structured title.
Multilingual(MultilingualComplex)
A complex multilingual title.
Multi(Vec<(LangID, String)>)
A title in multiple languages.
MultiStructured(Vec<(LangID, StructuredTitle)>)
A structured title in multiple languages.
Shorthand(String, String)
An abbreviated title (shorthand, full).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Title
impl<'de> Deserialize<'de> for Title
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Title, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Title, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Title
impl Serialize for Title
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Title
Auto Trait Implementations§
impl Freeze for Title
impl RefUnwindSafe for Title
impl Send for Title
impl Sync for Title
impl Unpin for Title
impl UnsafeUnpin for Title
impl UnwindSafe for Title
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more