pub struct Identifier {
pub id: String,
pub kind: String,
pub meta: Option<Meta>,
}
Expand description
A resource identifier object
Basically just the identifying information needed to refer to a ResourceObject
See the JSON:API docs for more information
Fields§
§id: String
The identifier of the object which, along with the object’s type, MUST refer to a single unique resource
kind: String
The object’s type, renamed here to kind due to keyword limitations
meta: Option<Meta>
Non-standard meta information
Implementations§
Trait Implementations§
Source§impl Clone for Identifier
impl Clone for Identifier
Source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
Returns a copy 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 Identifier
impl Debug for Identifier
Source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
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 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 PartialEq for Identifier
impl PartialEq for Identifier
Source§impl Serialize for Identifier
impl Serialize for Identifier
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<&Identifier> for ResourceObject<A>
impl<A> TryFrom<&Identifier> for ResourceObject<A>
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
Source§impl<A> TryFrom<&ResourceObject<A>> for Identifier
impl<A> TryFrom<&ResourceObject<A>> for Identifier
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<Identifier> for ResourceObject<A>
impl<A> TryFrom<Identifier> for ResourceObject<A>
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
Source§impl<A> TryFrom<ResourceObject<A>> for Identifier
impl<A> TryFrom<ResourceObject<A>> for Identifier
Source§type Error = ObjectConversionError
type Error = ObjectConversionError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
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