pub struct Relationship {
pub id: Uuid,
pub type_: RelationshipType,
pub related: Option<MangaRelation>,
pub attributes: Option<RelatedAttributes>,
}
Fields§
§id: Uuid
§type_: RelationshipType
Related 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 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 Relationship
impl Debug for Relationship
Source§impl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Relationship, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Relationship, <__D as Deserializer<'de>>::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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<AuthorAttributes>, <ApiObjectNoRelationships<AuthorAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<AuthorAttributes>, <ApiObjectNoRelationships<AuthorAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<ChapterAttributes>, <ApiObjectNoRelationships<ChapterAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<ChapterAttributes>, <ApiObjectNoRelationships<ChapterAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<CoverAttributes>, <ApiObjectNoRelationships<CoverAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<CoverAttributes>, <ApiObjectNoRelationships<CoverAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<CustomListAttributes>, <ApiObjectNoRelationships<CustomListAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<CustomListAttributes>, <ApiObjectNoRelationships<CustomListAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<MangaAttributes>, <ApiObjectNoRelationships<MangaAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<MangaAttributes>, <ApiObjectNoRelationships<MangaAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<ScanlationGroupAttributes>, <ApiObjectNoRelationships<ScanlationGroupAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<ScanlationGroupAttributes>, <ApiObjectNoRelationships<ScanlationGroupAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<TagAttributes>, <ApiObjectNoRelationships<TagAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<TagAttributes>, <ApiObjectNoRelationships<TagAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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.
Source§fn try_from(
value: Relationship,
) -> Result<ApiObjectNoRelationships<UserAttributes>, <ApiObjectNoRelationships<UserAttributes> as TryFrom<Relationship>>::Error>
fn try_from( value: Relationship, ) -> Result<ApiObjectNoRelationships<UserAttributes>, <ApiObjectNoRelationships<UserAttributes> as TryFrom<Relationship>>::Error>
Performs the conversion.
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