pub struct Person { /* private fields */ }Expand description
Structure used in response to a GET` Agents Resource request. It
provides aggregated information about one Agent.
Also called a “Person Object” it’s very similar to an Agent, but instead of each attribute being a single value, this one has a list of them. In addition contrary to n Agent a Person may have more than of those IFI (Inverse Functional Identifier) fields populated.
Person is expected to be used, by an LRS, to associate a person-centric (aggregated) data, while an Agent only refers to one persona (one person in one context).
Implementations§
Source§impl Person
impl Person
Sourcepub fn builder() -> PersonBuilder
pub fn builder() -> PersonBuilder
Return a Person Builder.
Sourcepub fn check_object_type(&self) -> bool
pub fn check_object_type(&self) -> bool
Return TRUE if the objectType property is as expected; FALSE otherwise.
Sourcepub fn mboxes(&self) -> &[MyEmailAddress]
pub fn mboxes(&self) -> &[MyEmailAddress]
Return the email address(es) of this Person or None if not set.
Sourcepub fn mbox_sha1sums(&self) -> &[String]
pub fn mbox_sha1sums(&self) -> &[String]
Return the email hash-sum(s) of this Person or None if not set.
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>,
Source§impl Validate for Person
impl Validate for Person
Source§fn validate(&self) -> Vec<ValidationError>
fn validate(&self) -> Vec<ValidationError>
Source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Source§fn check_validity(&self) -> Result<(), ValidationError>
fn check_validity(&self) -> Result<(), ValidationError>
impl StructuralPartialEq 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 UnsafeUnpin 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> 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> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.