#[non_exhaustive]pub enum RelationshipData {
ToOne(Option<ResourceIdentifier>),
ToMany(Vec<ResourceIdentifier>),
}Expand description
Resource linkage inside a relationship.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ToOne(Option<ResourceIdentifier>)
To-one: null (empty) or a single resource identifier.
ToMany(Vec<ResourceIdentifier>)
To-many: an array of resource identifiers (may be empty).
Trait Implementations§
Source§impl Clone for RelationshipData
impl Clone for RelationshipData
Source§fn clone(&self) -> RelationshipData
fn clone(&self) -> RelationshipData
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 RelationshipData
impl Debug for RelationshipData
Source§impl<'de> Deserialize<'de> for RelationshipData
impl<'de> Deserialize<'de> for RelationshipData
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RelationshipData
impl PartialEq for RelationshipData
Source§impl Serialize for RelationshipData
impl Serialize for RelationshipData
impl StructuralPartialEq for RelationshipData
Auto Trait Implementations§
impl Freeze for RelationshipData
impl RefUnwindSafe for RelationshipData
impl Send for RelationshipData
impl Sync for RelationshipData
impl Unpin for RelationshipData
impl UnsafeUnpin for RelationshipData
impl UnwindSafe for RelationshipData
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