pub struct Identifier {
pub id: String,
pub kind: Key,
pub meta: Map,
/* private fields */
}
Expand description
Identifies an individual resource. Commonly found in an object’s relationships.
Identifiers share their equality and hashing behavior with Object
. For more
information, check out the resource identifier objects section of the
JSON API specification.
Fields§
§id: String
A string that contains a unique identfier for this resource type (kind
). For
more information, check out the identification section of the JSON API
specification.
kind: Key
Describes resources that share common attributes and relationships. This field is
derived from the type
field if the identifier is deserialized. For more
information, check out the identification section of the JSON API
specification.
meta: Map
Non-standard meta information. If this value of this field is empty, it will not be serialized. For more information, check out the meta information section of the JSON API specification.
Implementations§
Trait Implementations§
Source§impl Clone for Identifier
impl Clone for Identifier
Source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl<'a> From<&'a Object> for Identifier
impl<'a> From<&'a Object> for Identifier
Source§impl From<Identifier> for Relationship
impl From<Identifier> for Relationship
Source§fn from(value: Identifier) -> Self
fn from(value: Identifier) -> Self
Source§impl From<Object> for Identifier
impl From<Object> for Identifier
Source§impl FromIterator<Identifier> for Relationship
impl FromIterator<Identifier> for Relationship
Source§fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = Identifier>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = Identifier>,
Source§impl Hash for Identifier
impl Hash for Identifier
Source§impl PartialEq<Identifier> for Object
impl PartialEq<Identifier> for Object
Source§impl PartialEq<Object> for Identifier
impl PartialEq<Object> for Identifier
Source§impl PartialEq for Identifier
impl PartialEq for Identifier
Source§impl Render<Identifier> for Identifier
impl Render<Identifier> for Identifier
Source§impl Render<Identifier> for Object
impl Render<Identifier> for Object
Source§impl Render<Identifier> for Vec<Identifier>
impl Render<Identifier> for Vec<Identifier>
Source§impl Serialize for Identifier
impl Serialize for Identifier
impl Eq for Identifier
impl PrimaryData 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.