Struct google_plus1::api::Person

source ·
pub struct Person {
Show 30 fields pub about_me: Option<String>, pub age_range: Option<PersonAgeRange>, pub birthday: Option<String>, pub bragging_rights: Option<String>, pub circled_by_count: Option<i32>, pub cover: Option<PersonCover>, pub current_location: Option<String>, pub display_name: Option<String>, pub domain: Option<String>, pub emails: Option<Vec<PersonEmails>>, pub etag: Option<String>, pub gender: Option<String>, pub id: Option<String>, pub image: Option<PersonImage>, pub is_plus_user: Option<bool>, pub kind: Option<String>, pub language: Option<String>, pub name: Option<PersonName>, pub nickname: Option<String>, pub object_type: Option<String>, pub occupation: Option<String>, pub organizations: Option<Vec<PersonOrganizations>>, pub places_lived: Option<Vec<PersonPlacesLived>>, pub plus_one_count: Option<i32>, pub relationship_status: Option<String>, pub skills: Option<String>, pub tagline: Option<String>, pub url: Option<String>, pub urls: Option<Vec<PersonUrls>>, pub verified: Option<bool>,
}
Expand description

There is no detailed description.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§about_me: Option<String>

A short biography for this person.

§age_range: Option<PersonAgeRange>

The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 or older. Age is determined from the user’s birthday using Western age reckoning.

§birthday: Option<String>

The person’s date of birth, represented as YYYY-MM-DD.

§bragging_rights: Option<String>

The “bragging rights” line of this person.

§circled_by_count: Option<i32>

For followers who are visible, the number of people who have added this person or page to a circle.

§cover: Option<PersonCover>

The cover photo content.

§current_location: Option<String>

(this field is not currently used)

§display_name: Option<String>

The name of this person, which is suitable for display.

§domain: Option<String>

The hosted domain name for the user’s Google Apps account. For instance, example.com. The plus.profile.emails.read or email scope is needed to get this domain name.

§emails: Option<Vec<PersonEmails>>

A list of email addresses that this person has, including their Google account email address, and the public verified email addresses on their Google+ profile. The plus.profile.emails.read scope is needed to retrieve these email addresses, or the email scope can be used to retrieve just the Google account email address.

§etag: Option<String>

ETag of this response for caching purposes.

§gender: Option<String>

The person’s gender. Possible values include, but are not limited to, the following values:

  • “male” - Male gender.
  • “female” - Female gender.
  • “other” - Other.
§id: Option<String>

The ID of this person.

§image: Option<PersonImage>

The representation of the person’s profile photo.

§is_plus_user: Option<bool>

Whether this user has signed up for Google+.

§kind: Option<String>

Identifies this resource as a person. Value: “plus#person”.

§language: Option<String>

The user’s preferred language for rendering.

§name: Option<PersonName>

An object representation of the individual components of a person’s name.

§nickname: Option<String>

The nickname of this person.

§object_type: Option<String>

Type of person within Google+. Possible values include, but are not limited to, the following values:

  • “person” - represents an actual person.
  • “page” - represents a page.
§occupation: Option<String>

The occupation of this person.

§organizations: Option<Vec<PersonOrganizations>>

A list of current or past organizations with which this person is associated.

§places_lived: Option<Vec<PersonPlacesLived>>

A list of places where this person has lived.

§plus_one_count: Option<i32>

If a Google+ Page, the number of people who have +1’d this page.

§relationship_status: Option<String>

The person’s relationship status. Possible values include, but are not limited to, the following values:

  • “single” - Person is single.
  • “in_a_relationship” - Person is in a relationship.
  • “engaged” - Person is engaged.
  • “married” - Person is married.
  • “its_complicated” - The relationship is complicated.
  • “open_relationship” - Person is in an open relationship.
  • “widowed” - Person is widowed.
  • “in_domestic_partnership” - Person is in a domestic partnership.
  • “in_civil_union” - Person is in a civil union.
§skills: Option<String>

The person’s skills.

§tagline: Option<String>

The brief description (tagline) of this person.

§url: Option<String>

The URL of this person’s profile.

§urls: Option<Vec<PersonUrls>>

A list of URLs for this person.

§verified: Option<bool>

Whether the person or Google+ Page has been verified.

Trait Implementations§

source§

impl Clone for Person

source§

fn clone(&self) -> Person

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Person

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Person

source§

fn default() -> Person

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Person

source§

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 Serialize for Person

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ResponseResult for Person

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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