pub struct Person {
pub name: String,
pub given_name: String,
pub prefix: String,
pub suffix: String,
}
Expand description
An author, editor, or some other person affiliated with a cited work.
When parsed through Person::parse
, the whitespace is trimmed from the
fields.
Fields§
§name: String
The surname / family name / last name.
given_name: String
The given name / first name / forename.
prefix: String
The prefix is placed between given name and name. It could, for example, be a nobiliary particle.
suffix: String
The suffix is placed after the name (e.g., “Jr.”).
Implementations§
Trait Implementations§
source§impl Ord for Person
impl Ord for Person
source§impl PartialEq for Person
impl PartialEq for Person
source§impl PartialOrd for Person
impl PartialOrd for Person
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Person
impl StructuralEq for Person
impl StructuralPartialEq for Person
Auto Trait Implementations§
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
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