#[non_exhaustive]pub struct Relationship {
pub id: Uuid,
pub type_: RelationshipType,
pub related: Option<MangaRelation>,
pub attributes: Option<RelatedAttributes>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Uuid§type_: RelationshipTypeRelated Manga type.
https://api.mangadex.org/docs/static-data/#manga-related-enum
This is only present for a Manga entity and a Manga relationship.
attributes: Option<RelatedAttributes>Contains object attributes for the type.
Present if Reference Expansion is applied.
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
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 Relationship
impl Debug for Relationship
Source§impl Default for Relationship
impl Default for Relationship
Source§fn default() -> Relationship
fn default() -> Relationship
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
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 TryFrom<Relationship> for ApiObjectNoRelationships<AuthorAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<AuthorAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<ChapterAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<ChapterAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<CoverAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<CoverAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<CustomListAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<CustomListAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<MangaAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<MangaAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<ScanlationGroupAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<ScanlationGroupAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<TagAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<TagAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<Relationship> for ApiObjectNoRelationships<UserAttributes>
impl TryFrom<Relationship> for ApiObjectNoRelationships<UserAttributes>
Source§type Error = RelationshipConversionError
type Error = RelationshipConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
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