pub enum PrimaryData {
Single(Box<ResourceObject>),
Collection(Vec<ResourceObject>),
}Expand description
Top-level data: one resource, a collection, or an explicit null.
Variants§
Single(Box<ResourceObject>)
Collection(Vec<ResourceObject>)
Trait Implementations§
Source§impl Clone for PrimaryData
impl Clone for PrimaryData
Source§impl Debug for PrimaryData
impl Debug for PrimaryData
Source§impl<'de> Deserialize<'de> for PrimaryData
impl<'de> Deserialize<'de> for PrimaryData
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 PartialEq for PrimaryData
impl PartialEq for PrimaryData
Source§impl Serialize for PrimaryData
impl Serialize for PrimaryData
impl StructuralPartialEq for PrimaryData
Auto Trait Implementations§
impl Freeze for PrimaryData
impl RefUnwindSafe for PrimaryData
impl Send for PrimaryData
impl Sync for PrimaryData
impl Unpin for PrimaryData
impl UnsafeUnpin for PrimaryData
impl UnwindSafe for PrimaryData
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