pub struct RelationshipRef {
pub data: Option<RelationshipData>,
}Expand description
A single JSON:API relationship reference, wrapping the data resource identifier.
Fields§
§data: Option<RelationshipData>The referenced resource’s type and id, if the relationship is populated.
Trait Implementations§
Source§impl Clone for RelationshipRef
impl Clone for RelationshipRef
Source§fn clone(&self) -> RelationshipRef
fn clone(&self) -> RelationshipRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelationshipRef
impl Debug for RelationshipRef
Source§impl<'de> Deserialize<'de> for RelationshipRef
impl<'de> Deserialize<'de> for RelationshipRef
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
Auto Trait Implementations§
impl Freeze for RelationshipRef
impl RefUnwindSafe for RelationshipRef
impl Send for RelationshipRef
impl Sync for RelationshipRef
impl Unpin for RelationshipRef
impl UnsafeUnpin for RelationshipRef
impl UnwindSafe for RelationshipRef
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