pub struct PersonName {
pub full: String,
pub first: Option<String>,
pub last: Option<String>,
}Expand description
Parsed person name
Fields§
§full: StringFull name as provided
first: Option<String>First name (if parseable)
last: Option<String>Last name (if parseable)
Implementations§
Trait Implementations§
Source§impl Clone for PersonName
impl Clone for PersonName
Source§fn clone(&self) -> PersonName
fn clone(&self) -> PersonName
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 PersonName
impl Debug for PersonName
Source§impl<'de> Deserialize<'de> for PersonName
impl<'de> Deserialize<'de> for PersonName
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 Display for PersonName
impl Display for PersonName
Source§impl PartialEq for PersonName
impl PartialEq for PersonName
Source§impl Serialize for PersonName
impl Serialize for PersonName
impl Eq for PersonName
impl StructuralPartialEq for PersonName
Auto Trait Implementations§
impl Freeze for PersonName
impl RefUnwindSafe for PersonName
impl Send for PersonName
impl Sync for PersonName
impl Unpin for PersonName
impl UnwindSafe for PersonName
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