pub struct OptionalDocument<A> {
pub data: Option<Resource<A>>,
}Expand description
A single-resource document whose data may be null, as Apple returns
for a to-one related resource that isn’t set, e.g. GET /v1/appStoreVersions/{id}/build on a version with no build attached.
Fields§
§data: Option<Resource<A>>Trait Implementations§
Source§impl<A: Clone> Clone for OptionalDocument<A>
impl<A: Clone> Clone for OptionalDocument<A>
Source§impl<A: Debug> Debug for OptionalDocument<A>
impl<A: Debug> Debug for OptionalDocument<A>
Source§impl<'de, A> Deserialize<'de> for OptionalDocument<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for OptionalDocument<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
Auto Trait Implementations§
impl<A> Freeze for OptionalDocument<A>
impl<A> RefUnwindSafe for OptionalDocument<A>
impl<A> Send for OptionalDocument<A>
impl<A> Sync for OptionalDocument<A>
impl<A> Unpin for OptionalDocument<A>
impl<A> UnsafeUnpin for OptionalDocument<A>
impl<A> UnwindSafe for OptionalDocument<A>
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