pub struct Relation {
pub formatted_type: Option<String>,
pub metadata: Option<FieldMetadata>,
pub person: Option<String>,
pub type_: Option<String>,
}Expand description
A person’s relation to another person.
This type is not used in any activity, and only used as part of another schema.
Fields§
§formatted_type: Option<String>Output only. The type of the relation translated and formatted in the viewer’s account locale or the locale specified in the Accept-Language HTTP header.
metadata: Option<FieldMetadata>Metadata about the relation.
person: Option<String>The name of the other person this relation refers to.
type_: Option<String>The person’s relation to the other person. The type can be custom or one of these predefined values: * spouse * child * mother * father * parent * brother * sister * friend * relative * domesticPartner * manager * assistant * referredBy * partner
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
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
impl Part for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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