Struct lexoffice::model::contacts::Person[][src]

pub struct Person {
    pub salutation: Option<String>,
    pub first_name: Option<String>,
    pub last_name: String,
}
{
  "id": "e9066f04-8cc7-4616-93f8-ac9ecc8479c8",
  "organizationId": "aa93e8a8-2aa3-470b-b914-caad8a255dd8",
  "version": 0,
  "roles": {
    "customer": {
      "number": 10308
    }
  },
  "person": {
    "salutation": "Frau",
    "firstName": "Inge",
    "lastName": "Musterfrau"
  },
  "archived": false
}

Use this object to provide information for a contact of type private person.

Fields

salutation: Option<String>

Salutation for the individual person with max length of 25 characters.

first_name: Option<String>

First name of the person.

last_name: String

Last name of the person.

Implementations

impl Person[src]

pub fn builder() -> PersonBuilder<((), (), ())>[src]

Create a builder for building Person. On the builder, call .salutation(...)(optional), .first_name(...)(optional), .last_name(...) to set the values of the fields. Finally, call .build() to create the instance of Person.

Trait Implementations

impl Clone for Person[src]

impl Debug for Person[src]

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

impl PartialEq<Person> for Person[src]

impl Serialize for Person[src]

impl StructuralPartialEq for Person[src]

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

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.