Enum bookdata::openlib::subject::SubjectType
source · #[repr(u8)]pub enum SubjectType {
General = 0,
Person = 1,
Place = 2,
Time = 3,
}
Expand description
The type of a subject relationship.
Variants§
Trait Implementations§
source§impl Clone for SubjectType
impl Clone for SubjectType
source§fn clone(&self) -> SubjectType
fn clone(&self) -> SubjectType
Returns a copy 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 SubjectType
impl Debug for SubjectType
source§impl Display for SubjectType
impl Display for SubjectType
source§impl From<SubjectType> for u8
impl From<SubjectType> for u8
source§fn from(enum_value: SubjectType) -> Self
fn from(enum_value: SubjectType) -> Self
Converts to this type from the input type.
source§impl FromStr for SubjectType
impl FromStr for SubjectType
source§impl MappableColType for SubjectType
impl MappableColType for SubjectType
type ColumnType = u8
source§impl TryFrom<u8> for SubjectType
impl TryFrom<u8> for SubjectType
§type Error = TryFromPrimitiveError<SubjectType>
type Error = TryFromPrimitiveError<SubjectType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for SubjectType
impl TryFromPrimitive for SubjectType
type Primitive = u8
type Error = TryFromPrimitiveError<SubjectType>
const NAME: &'static str = "SubjectType"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl RefUnwindSafe for SubjectType
impl Send for SubjectType
impl Sync for SubjectType
impl Unpin for SubjectType
impl UnwindSafe for SubjectType
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