pub struct ContributorEntry {
pub role: ContributorRole,
pub contributor: Contributor,
pub gender: Option<ContributorGender>,
}Expand description
A single entry in a reference’s contributors list.
Fields§
§role: ContributorRoleThe role this contributor plays in relation to the work.
contributor: ContributorThe contributor (name, organization, or list).
gender: Option<ContributorGender>The grammatical gender used for role-label agreement.
Trait Implementations§
Source§impl Clone for ContributorEntry
impl Clone for ContributorEntry
Source§fn clone(&self) -> ContributorEntry
fn clone(&self) -> ContributorEntry
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 ContributorEntry
impl Debug for ContributorEntry
Source§impl<'de> Deserialize<'de> for ContributorEntry
impl<'de> Deserialize<'de> for ContributorEntry
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 ContributorEntry
impl PartialEq for ContributorEntry
Source§fn eq(&self, other: &ContributorEntry) -> bool
fn eq(&self, other: &ContributorEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContributorEntry
impl Serialize for ContributorEntry
impl StructuralPartialEq for ContributorEntry
Auto Trait Implementations§
impl Freeze for ContributorEntry
impl RefUnwindSafe for ContributorEntry
impl Send for ContributorEntry
impl Sync for ContributorEntry
impl Unpin for ContributorEntry
impl UnsafeUnpin for ContributorEntry
impl UnwindSafe for ContributorEntry
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