pub struct Relation {
pub id: i64,
pub relation_type: RelationType,
pub is_main_studio: bool,
/* private fields */
}Expand description
Represents a relation between different media types.
The Relation struct contains information about the relationship
between different media types, such as anime and manga, including
the related media, relation ID, relation type, and whether it is
the main studio.
§Fields
id- The ID of the relation.relation_type- The type of relation (e.g., adaptation, sequel).is_main_studio- Whether the relation is the main studio.
Fields§
§id: i64The ID of the relation.
relation_type: RelationTypeThe type of relation (e.g., adaptation, sequel).
is_main_studio: boolWhether the relation is the main studio.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
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
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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