pub struct GenericObject { /* private fields */ }Expand description
A generic resource object of some unknown type
Should never be directly manipulated, convert to/from ResourceObject or
Identifier instead
See the JSON:API docs for more information
Implementations§
Trait Implementations§
Source§impl Clone for GenericObject
impl Clone for GenericObject
Source§fn clone(&self) -> GenericObject
fn clone(&self) -> GenericObject
Returns a duplicate 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 Debug for GenericObject
impl Debug for GenericObject
Source§impl<'de> Deserialize<'de> for GenericObject
impl<'de> Deserialize<'de> for GenericObject
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 From<&Identifier> for GenericObject
impl From<&Identifier> for GenericObject
Source§fn from(id: &Identifier) -> Self
fn from(id: &Identifier) -> Self
Converts to this type from the input type.
Source§impl<A> From<&ResourceObject<A>> for GenericObject
impl<A> From<&ResourceObject<A>> for GenericObject
Source§fn from(ro: &ResourceObject<A>) -> Self
fn from(ro: &ResourceObject<A>) -> Self
Converts to this type from the input type.
Source§impl From<Identifier> for GenericObject
impl From<Identifier> for GenericObject
Source§fn from(id: Identifier) -> Self
fn from(id: Identifier) -> Self
Converts to this type from the input type.
Source§impl<A> From<ResourceObject<A>> for GenericObject
impl<A> From<ResourceObject<A>> for GenericObject
Source§fn from(ro: ResourceObject<A>) -> Self
fn from(ro: ResourceObject<A>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GenericObject
impl PartialEq for GenericObject
Source§impl Serialize for GenericObject
impl Serialize for GenericObject
Source§impl TryFrom<&GenericObject> for Identifier
impl TryFrom<&GenericObject> for Identifier
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
Source§impl<A> TryFrom<&GenericObject> for ResourceObject<A>
impl<A> TryFrom<&GenericObject> for ResourceObject<A>
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<GenericObject> for Identifier
impl TryFrom<GenericObject> for Identifier
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
Source§impl<A> TryFrom<GenericObject> for ResourceObject<A>
impl<A> TryFrom<GenericObject> for ResourceObject<A>
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
impl StructuralPartialEq for GenericObject
Auto Trait Implementations§
impl Freeze for GenericObject
impl RefUnwindSafe for GenericObject
impl Send for GenericObject
impl Sync for GenericObject
impl Unpin for GenericObject
impl UnwindSafe for GenericObject
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