[−][src]Struct japi::Identifier
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
Methods
impl Identifier
[src]
Trait Implementations
impl Clone for Identifier
[src]
fn clone(&self) -> Identifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Identifier
[src]
impl<'de> Deserialize<'de> for Identifier
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'_> From<&'_ Identifier> for GenericObject
[src]
fn from(id: &Identifier) -> Self
[src]
impl From<Identifier> for GenericObject
[src]
fn from(id: Identifier) -> Self
[src]
impl PartialEq<Identifier> for Identifier
[src]
fn eq(&self, other: &Identifier) -> bool
[src]
fn ne(&self, other: &Identifier) -> bool
[src]
impl Serialize for Identifier
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Identifier
[src]
impl<'_> TryFrom<&'_ GenericObject> for Identifier
[src]
type Error = ObjectConversionError
The type returned in the event of a conversion error.
fn try_from(go: &GenericObject) -> Result<Self, Self::Error>
[src]
impl<'_, A> TryFrom<&'_ Identifier> for ResourceObject<A> where
A: Attributes + Serialize + DeserializeOwned,
[src]
A: Attributes + Serialize + DeserializeOwned,
type Error = ObjectConversionError
The type returned in the event of a conversion error.
fn try_from(id: &Identifier) -> Result<Self, Self::Error>
[src]
impl<'_, A> TryFrom<&'_ ResourceObject<A>> for Identifier where
A: Attributes + SerializeTrait + DeserializeOwned,
[src]
A: Attributes + SerializeTrait + DeserializeOwned,
type Error = ObjectConversionError
The type returned in the event of a conversion error.
fn try_from(ro: &ResourceObject<A>) -> Result<Self, Self::Error>
[src]
impl TryFrom<GenericObject> for Identifier
[src]
type Error = ObjectConversionError
The type returned in the event of a conversion error.
fn try_from(go: GenericObject) -> Result<Self, Self::Error>
[src]
impl<A> TryFrom<Identifier> for ResourceObject<A> where
A: Attributes + Serialize + DeserializeOwned,
[src]
A: Attributes + Serialize + DeserializeOwned,
type Error = ObjectConversionError
The type returned in the event of a conversion error.
fn try_from(id: Identifier) -> Result<Self, Self::Error>
[src]
impl<A> TryFrom<ResourceObject<A>> for Identifier where
A: Attributes + SerializeTrait + DeserializeOwned,
[src]
A: Attributes + SerializeTrait + DeserializeOwned,
type Error = ObjectConversionError
The type returned in the event of a conversion error.
fn try_from(ro: ResourceObject<A>) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,