pub struct Group { /* private fields */ }Expand description
Implementations§
Source§impl Group
impl Group
Sourcepub fn from_json_obj(map: Map<String, Value>) -> Result<Self, DataError>
pub fn from_json_obj(map: Map<String, Value>) -> Result<Self, DataError>
Construct and validate a Group from a JSON Object.
Sourcepub fn builder() -> GroupBuilder
pub fn builder() -> GroupBuilder
Return a Group Builder.
Sourcepub fn check_object_type(&self) -> bool
pub fn check_object_type(&self) -> bool
Return TRUE if the objectType property is Group; FALSE otherwise.
Sourcepub fn is_anonymous(&self) -> bool
pub fn is_anonymous(&self) -> bool
Return TRUE if this Group is anonymous; FALSE otherwise.
Sourcepub fn name_as_str(&self) -> Option<&str>
pub fn name_as_str(&self) -> Option<&str>
Return name field as a string reference if set; None otherwise.
Sourcepub fn members(&self) -> Vec<&Agent>
pub fn members(&self) -> Vec<&Agent>
Return the unordered members list if it’s set or None otherwise.
When set, it’s a vector of at least one Agent). This is expected to be the case when the Group is anonymous.
Sourcepub fn mbox(&self) -> Option<&MyEmailAddress>
pub fn mbox(&self) -> Option<&MyEmailAddress>
Return mbox field if set; None otherwise.
Sourcepub fn mbox_sha1sum(&self) -> Option<&str>
pub fn mbox_sha1sum(&self) -> Option<&str>
Return mbox_sha1sum field (hex-encoded SHA1 hash of this entity’s
mbox URI) if set; None otherwise.
Sourcepub fn openid(&self) -> Option<&UriStr>
pub fn openid(&self) -> Option<&UriStr>
Return openid field (openID URI of this entity) if set; None otherwise.
Sourcepub fn account(&self) -> Option<&Account>
pub fn account(&self) -> Option<&Account>
Return account field (reference to this entity’s Account) if set;
None otherwise.
Sourcepub fn equivalent(&self, that: &Group) -> bool
pub fn equivalent(&self, that: &Group) -> bool
Return TRUE if this is Equivalent to that and FALSE otherwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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 Fingerprint for Group
impl Fingerprint for Group
Source§impl Ord for Group
impl Ord for Group
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Group
impl PartialOrd for Group
Source§impl Validate for Group
impl Validate for Group
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 Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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> 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.