#[non_exhaustive]pub struct OwnerFlags {
pub active: bool,
pub admin: bool,
}Expand description
The account owner’s standing in the Chat at delivery time, which decides the broadcast scopes that target them.
draft-atwood-jmap-chat-push-00 §ChatMessageEntry mentionScopes:
“"here" is included only when the owner satisfies the
deployment-defined “active” predicate at delivery time; "admins" is
included only when the owner satisfies the deployment-defined
“administrative authority” predicate at delivery time.“ Both predicates
are deployment-defined, so the caller evaluates them.
Build it with OwnerFlags::new; more flags may be added.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.active: boolThe owner satisfies the deployment’s “active” predicate.
admin: boolThe owner has administrative authority in the Chat.
Implementations§
Trait Implementations§
Source§impl Clone for OwnerFlags
impl Clone for OwnerFlags
impl Copy for OwnerFlags
Source§impl Debug for OwnerFlags
impl Debug for OwnerFlags
Source§impl Default for OwnerFlags
impl Default for OwnerFlags
impl Eq for OwnerFlags
Source§impl PartialEq for OwnerFlags
impl PartialEq for OwnerFlags
impl StructuralPartialEq for OwnerFlags
Auto Trait Implementations§
impl Forget for OwnerFlags
impl Freeze for OwnerFlags
impl Move for OwnerFlags
impl RefUnwindSafe for OwnerFlags
impl Send for OwnerFlags
impl Sync for OwnerFlags
impl Unpin for OwnerFlags
impl UnsafeUnpin for OwnerFlags
impl UnwindSafe for OwnerFlags
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.