pub struct ItemWithRelations<T> {
pub item: T,
pub relations: Option<Relations>,
}Fields§
§item: T§relations: Option<Relations>Trait Implementations§
Source§impl<T> Clone for ItemWithRelations<T>where
T: Clone,
impl<T> Clone for ItemWithRelations<T>where
T: Clone,
Source§fn clone(&self) -> ItemWithRelations<T>
fn clone(&self) -> ItemWithRelations<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for ItemWithRelations<T>where
T: Debug,
impl<T> Debug for ItemWithRelations<T>where
T: Debug,
Source§impl<T> Default for ItemWithRelations<T>where
T: Default,
impl<T> Default for ItemWithRelations<T>where
T: Default,
Source§fn default() -> ItemWithRelations<T>
fn default() -> ItemWithRelations<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for ItemWithRelations<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ItemWithRelations<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ItemWithRelations<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ItemWithRelations<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> PartialEq for ItemWithRelations<T>where
T: PartialEq,
impl<T> PartialEq for ItemWithRelations<T>where
T: PartialEq,
Source§impl<T> Serialize for ItemWithRelations<T>where
T: Serialize,
impl<T> Serialize for ItemWithRelations<T>where
T: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> StructuralPartialEq for ItemWithRelations<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Forget for ItemWithRelations<T>
impl<T> Freeze for ItemWithRelations<T>where
T: Freeze,
*const u8 is !null: Freeze,
PhantomData<PersonWithRoles>: Freeze,
PhantomData<Tag>: Freeze,
PhantomData<MediaItemReference>: Freeze,
PhantomData<FileEpisode>: Freeze,
PhantomData<Serie>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Movie>: Freeze,
PhantomData<Book>: Freeze,
PhantomData<ExternalImage>: Freeze,
impl<T> Move for ItemWithRelations<T>
impl<T> RefUnwindSafe for ItemWithRelations<T>where
T: RefUnwindSafe,
impl<T> Send for ItemWithRelations<T>
impl<T> Sync for ItemWithRelations<T>
impl<T> Unpin for ItemWithRelations<T>
impl<T> UnsafeUnpin for ItemWithRelations<T>where
T: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<PersonWithRoles>: UnsafeUnpin,
PhantomData<Tag>: UnsafeUnpin,
PhantomData<MediaItemReference>: UnsafeUnpin,
PhantomData<FileEpisode>: UnsafeUnpin,
PhantomData<Serie>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Movie>: UnsafeUnpin,
PhantomData<Book>: UnsafeUnpin,
PhantomData<ExternalImage>: UnsafeUnpin,
impl<T> UnwindSafe for ItemWithRelations<T>
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