Struct google_plus1::api::PersonAgeRange
source · pub struct PersonAgeRange {
pub max: Option<i32>,
pub min: Option<i32>,
}
Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§max: Option<i32>
The age range’s upper bound, if any. Possible values include, but are not limited to, the following:
- “17” - for age 17
- “20” - for age 20
min: Option<i32>
The age range’s lower bound, if any. Possible values include, but are not limited to, the following:
- “21” - for age 21
- “18” - for age 18
Trait Implementations§
source§impl Clone for PersonAgeRange
impl Clone for PersonAgeRange
source§fn clone(&self) -> PersonAgeRange
fn clone(&self) -> PersonAgeRange
Returns a copy 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 PersonAgeRange
impl Debug for PersonAgeRange
source§impl Default for PersonAgeRange
impl Default for PersonAgeRange
source§fn default() -> PersonAgeRange
fn default() -> PersonAgeRange
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PersonAgeRange
impl<'de> Deserialize<'de> for PersonAgeRange
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 Serialize for PersonAgeRange
impl Serialize for PersonAgeRange
impl NestedType for PersonAgeRange
impl Part for PersonAgeRange
Auto Trait Implementations§
impl Freeze for PersonAgeRange
impl RefUnwindSafe for PersonAgeRange
impl Send for PersonAgeRange
impl Sync for PersonAgeRange
impl Unpin for PersonAgeRange
impl UnwindSafe for PersonAgeRange
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more