pub struct ApiObjectNoRelationships<A> {
pub id: Uuid,
pub type_: RelationshipType,
pub attributes: A,
}
Fields§
§id: Uuid
§type_: RelationshipType
§attributes: A
Implementations§
Source§impl<T> ApiObjectNoRelationships<T>
impl<T> ApiObjectNoRelationships<T>
pub fn with_relathionships(self, rel: Option<Vec<Relationship>>) -> ApiObject<T>
Trait Implementations§
Source§impl<A: Clone> Clone for ApiObjectNoRelationships<A>
impl<A: Clone> Clone for ApiObjectNoRelationships<A>
Source§fn clone(&self) -> ApiObjectNoRelationships<A>
fn clone(&self) -> ApiObjectNoRelationships<A>
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<A: Debug> Debug for ApiObjectNoRelationships<A>
impl<A: Debug> Debug for ApiObjectNoRelationships<A>
Source§impl<A: Default> Default for ApiObjectNoRelationships<A>
impl<A: Default> Default for ApiObjectNoRelationships<A>
Source§fn default() -> ApiObjectNoRelationships<A>
fn default() -> ApiObjectNoRelationships<A>
Returns the “default value” for a type. Read more
Source§impl<'de, A> Deserialize<'de> for ApiObjectNoRelationships<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for ApiObjectNoRelationships<A>where
A: Deserialize<'de>,
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<T> From<ApiObject<T>> for ApiObjectNoRelationships<T>
impl<T> From<ApiObject<T>> for ApiObjectNoRelationships<T>
Source§impl<T> From<ApiObjectNoRelationships<T>> for ApiObject<T>
impl<T> From<ApiObjectNoRelationships<T>> for ApiObject<T>
Source§fn from(value: ApiObjectNoRelationships<T>) -> Self
fn from(value: ApiObjectNoRelationships<T>) -> Self
Converts to this type from the input type.
Source§impl From<Tag> for ApiObjectNoRelationships<TagAttributes>
impl From<Tag> for ApiObjectNoRelationships<TagAttributes>
Source§impl<A> FromResponse for ApiObjectNoRelationships<A>
impl<A> FromResponse for ApiObjectNoRelationships<A>
type Response = ApiObjectNoRelationships<A>
fn from_response(value: Self::Response) -> Self
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<A> Freeze for ApiObjectNoRelationships<A>where
A: Freeze,
impl<A> RefUnwindSafe for ApiObjectNoRelationships<A>where
A: RefUnwindSafe,
impl<A> Send for ApiObjectNoRelationships<A>where
A: Send,
impl<A> Sync for ApiObjectNoRelationships<A>where
A: Sync,
impl<A> Unpin for ApiObjectNoRelationships<A>where
A: Unpin,
impl<A> UnwindSafe for ApiObjectNoRelationships<A>where
A: UnwindSafe,
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