#[repr(u8)]pub enum SubjectType {
General = 71,
Person = 80,
Place = 76,
Time = 84,
}
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 TryFrom<u8> for SubjectType
impl TryFrom<u8> for SubjectType
Source§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
const NAME: &'static str = "SubjectType"
type Primitive = u8
type Error = TryFromPrimitiveError<SubjectType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for SubjectType
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