pub struct WorkLink {
pub mbid: String,
pub title: String,
pub relation_id: Option<String>,
pub relation_type: Option<String>,
pub relation_type_id: Option<String>,
pub direction: Option<String>,
pub attributes: Vec<CreditAttribute>,
pub credits: Vec<CreditLink>,
pub parents: Vec<WorkParentLink>,
}Expand description
One work relationship asserted by a source about a recording.
The identifier is mandatory. A title is useful for a reader, but it is not identity and must never be used to join two compositions.
Fields§
§mbid: StringMusicBrainz work identifier.
title: StringTitle as the source spells it.
relation_id: Option<String>Identifier of the recording-to-work relationship, when exposed.
relation_type: Option<String>Relationship type, normally performance.
relation_type_id: Option<String>Stable identifier of the recording-to-work relationship type.
direction: Option<String>Direction of the relationship from the queried recording.
attributes: Vec<CreditAttribute>Attributes such as live, cover, instrumental, partial or medley.
credits: Vec<CreditLink>Artist relationships attached to the composition itself.
parents: Vec<WorkParentLink>Explicitly identified containing works, such as a symphony for one movement.
Trait Implementations§
impl Eq for WorkLink
impl StructuralPartialEq for WorkLink
Auto Trait Implementations§
impl Freeze for WorkLink
impl RefUnwindSafe for WorkLink
impl Send for WorkLink
impl Sync for WorkLink
impl Unpin for WorkLink
impl UnwindSafe for WorkLink
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