pub struct Items<C, E = ()> {
pub items: C,
pub extra_fields: E,
}Expand description
A generic structure for handling items in requests and responses.
Fields§
§items: CThe items of the request or response.
extra_fields: EAdditional fields, delegated to the E type.
Implementations§
Source§impl<C, E> Items<C, E>
impl<C, E> Items<C, E>
Sourcepub fn new_with_extra_fields(items: C, extra_fields: E) -> Self
pub fn new_with_extra_fields(items: C, extra_fields: E) -> Self
Create a new Items instance with the provided items and extra fields.
Trait Implementations§
Source§impl<R> DeleteWithRequest<Items<IdentityList<R>, DeleteAssetsRequestData>> for AssetsResource
impl<R> DeleteWithRequest<Items<IdentityList<R>, DeleteAssetsRequestData>> for AssetsResource
Source§impl<'de, C, E> Deserialize<'de> for Items<C, E>where
C: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, C, E> Deserialize<'de> for Items<C, E>where
C: Deserialize<'de>,
E: 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<R> RetrieveWithRequest<Items<IdentityList<R>, RetrieveAssetsRequestData>, Items<Vec<Asset>>> for AssetsResource
impl<R> RetrieveWithRequest<Items<IdentityList<R>, RetrieveAssetsRequestData>, Items<Vec<Asset>>> for AssetsResource
impl<C: Copy, E: Copy> Copy for Items<C, E>
Auto Trait Implementations§
impl<C, E> Freeze for Items<C, E>
impl<C, E> RefUnwindSafe for Items<C, E>where
C: RefUnwindSafe,
E: RefUnwindSafe,
impl<C, E> Send for Items<C, E>
impl<C, E> Sync for Items<C, E>
impl<C, E> Unpin for Items<C, E>
impl<C, E> UnwindSafe for Items<C, E>where
C: UnwindSafe,
E: 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