pub enum RelationType {
Show 13 variants
Adaptation,
Prequel,
Sequel,
Parent,
SideStory,
Character,
Summary,
Alternative,
SpinOff,
Other,
Source,
Compilation,
Contains,
}
Expand description
Represents the type of relation between different media.
The RelationType
enum defines various types of relationships that
can exist between different media, such as adaptations, sequels,
prequels, and more.
§Variants
Adaptation
- The media is an adaptation of another work.Prequel
- The media is a prequel to another work.Sequel
- The media is a sequel to another work.Parent
- The media is a parent story to another work.SideStory
- The media is a side story to another work.Character
- The media shares characters with another work.Summary
- The media is a summary of another work.Alternative
- The media is an alternative version of another work.SpinOff
- The media is a spin-off of another work.Other
- The media has some other type of relation to another work.Source
- The media is the source material for another work.Compilation
- The media is a compilation of another work.Contains
- The media contains another work.
Variants§
Adaptation
The media is an adaptation of another work.
Prequel
The media is a prequel to another work.
Sequel
The media is a sequel to another work.
Parent
The media is a parent story to another work.
SideStory
The media is a side story to another work.
Character
The media shares characters with another work.
Summary
The media is a summary of another work.
Alternative
The media is an alternative version of another work.
SpinOff
The media is a spin-off of another work.
Other
The media has some other type of relation to another work.
Source
The media is the source material for another work.
Compilation
The media is a compilation of another work.
Contains
The media contains another work.
Implementations§
Trait Implementations§
Source§impl Clone for RelationType
impl Clone for RelationType
Source§fn clone(&self) -> RelationType
fn clone(&self) -> RelationType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RelationType
impl Debug for RelationType
Source§impl Default for RelationType
impl Default for RelationType
Source§fn default() -> RelationType
fn default() -> RelationType
Source§impl<'de> Deserialize<'de> for RelationType
impl<'de> Deserialize<'de> for RelationType
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>,
Source§impl Hash for RelationType
impl Hash for RelationType
Source§impl PartialEq for RelationType
impl PartialEq for RelationType
Source§impl Serialize for RelationType
impl Serialize for RelationType
impl Eq for RelationType
impl StructuralPartialEq for RelationType
Auto Trait Implementations§
impl Freeze for RelationType
impl RefUnwindSafe for RelationType
impl Send for RelationType
impl Sync for RelationType
impl Unpin for RelationType
impl UnwindSafe for RelationType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.