pub struct Person {
pub person_id: Option<String>,
pub person_properties: Option<PersonProperties>,
pub suggested_deletion_ids: Option<Vec<String>>,
pub suggested_insertion_ids: Option<Vec<String>>,
pub suggested_text_style_changes: Option<HashMap<String, SuggestedTextStyle>>,
pub text_style: Option<TextStyle>,
}
Expand description
A person or email address mentioned in a document. These mentions behave as a single, immutable element containing the person’s name or email address.
This type is not used in any activity, and only used as part of another schema.
Fields§
§person_id: Option<String>
Output only. The unique ID of this link.
person_properties: Option<PersonProperties>
Output only. The properties of this Person. This field is always present.
suggested_deletion_ids: Option<Vec<String>>
IDs for suggestions that remove this person link from the document. A Person might have multiple deletion IDs if, for example, multiple users suggest deleting it. If empty, then this person link isn’t suggested for deletion.
suggested_insertion_ids: Option<Vec<String>>
IDs for suggestions that insert this person link into the document. A Person might have multiple insertion IDs if it’s a nested suggested change (a suggestion within a suggestion made by a different user, for example). If empty, then this person link isn’t a suggested insertion.
suggested_text_style_changes: Option<HashMap<String, SuggestedTextStyle>>
The suggested text style changes to this Person, keyed by suggestion ID.
text_style: Option<TextStyle>
The text style of this Person.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Person
impl<'de> Deserialize<'de> for Person
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>,
impl Part for Person
Auto Trait Implementations§
impl Freeze for Person
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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