pub enum WorkRelation {
Id(RefID),
Embedded(Box<InputReference>),
}Expand description
A relation to another bibliographic entity.
Untagged in serde to allow either an inline object or a string ID reference.
Used for both hierarchical (container) and associative (original, reviewed, series) links.
Variants§
Id(RefID)
The target work is referenced by its ID (resolved at render time).
Embedded(Box<InputReference>)
The target work is embedded inline.
Trait Implementations§
Source§impl Clone for WorkRelation
impl Clone for WorkRelation
Source§fn clone(&self) -> WorkRelation
fn clone(&self) -> WorkRelation
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 WorkRelation
impl Debug for WorkRelation
Source§impl<'de> Deserialize<'de> for WorkRelation
impl<'de> Deserialize<'de> for WorkRelation
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 PartialEq for WorkRelation
impl PartialEq for WorkRelation
Source§fn eq(&self, other: &WorkRelation) -> bool
fn eq(&self, other: &WorkRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkRelation
impl Serialize for WorkRelation
impl StructuralPartialEq for WorkRelation
Auto Trait Implementations§
impl Freeze for WorkRelation
impl RefUnwindSafe for WorkRelation
impl Send for WorkRelation
impl Sync for WorkRelation
impl Unpin for WorkRelation
impl UnsafeUnpin for WorkRelation
impl UnwindSafe for WorkRelation
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