[][src]Struct paypal_rs::invoice::Name

pub struct Name {
    pub prefix: Option<String>,
    pub given_name: Option<String>,
    pub surname: Option<String>,
    pub middle_name: Option<String>,
    pub suffix: Option<String>,
    pub alternate_full_name: Option<String>,
    pub full_name: Option<String>,
}

A name to be used as recipient, etc.

Fields

prefix: Option<String>

The prefix, or title, to the party's name.

given_name: Option<String>

When the party is a person, the party's given, or first, name.

surname: Option<String>

When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname.

middle_name: Option<String>

When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name.

suffix: Option<String>

The suffix for the party's name.

alternate_full_name: Option<String>

DEPRECATED. The party's alternate name. Can be a business name, nickname, or any other name that cannot be split into first, last name. Required when the party is a business.

full_name: Option<String>

When the party is a person, the party's full name.

Trait Implementations

impl Debug for Name[src]

impl Default for Name[src]

impl<'de> Deserialize<'de> for Name[src]

impl Serialize for Name[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.