pub enum PublicationType {
Paperback,
Hardback,
PDF,
HTML,
XML,
Epub,
Mobi,
}Variants§
Trait Implementations§
Source§impl Clone for PublicationType
impl Clone for PublicationType
Source§fn clone(&self) -> PublicationType
fn clone(&self) -> PublicationType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicationType
impl Debug for PublicationType
Source§impl Default for PublicationType
impl Default for PublicationType
Source§fn default() -> PublicationType
fn default() -> PublicationType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicationType
impl<'de> Deserialize<'de> for PublicationType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PublicationType
impl Display for PublicationType
Source§impl FromStr for PublicationType
impl FromStr for PublicationType
Source§type Err = ThothError
type Err = ThothError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<PublicationType, ThothError>
fn from_str(input: &str) -> Result<PublicationType, ThothError>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for PublicationType
impl PartialEq for PublicationType
Source§impl Serialize for PublicationType
impl Serialize for PublicationType
impl StructuralPartialEq for PublicationType
Auto Trait Implementations§
impl Freeze for PublicationType
impl RefUnwindSafe for PublicationType
impl Send for PublicationType
impl Sync for PublicationType
impl Unpin for PublicationType
impl UnwindSafe for PublicationType
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