pub struct NotificationRecipientsRestrictions {
pub groups: Option<Vec<GroupName>>,
pub permissions: Option<Vec<RestrictedPermission>>,
}
Expand description
NotificationRecipientsRestrictions : Details of the group membership or permissions needed to receive the notification.
Fields§
§groups: Option<Vec<GroupName>>
List of group memberships required to receive the notification.
permissions: Option<Vec<RestrictedPermission>>
List of permissions required to receive the notification.
Implementations§
Source§impl NotificationRecipientsRestrictions
impl NotificationRecipientsRestrictions
Sourcepub fn new() -> NotificationRecipientsRestrictions
pub fn new() -> NotificationRecipientsRestrictions
Details of the group membership or permissions needed to receive the notification.
Trait Implementations§
Source§impl Clone for NotificationRecipientsRestrictions
impl Clone for NotificationRecipientsRestrictions
Source§fn clone(&self) -> NotificationRecipientsRestrictions
fn clone(&self) -> NotificationRecipientsRestrictions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for NotificationRecipientsRestrictions
impl Default for NotificationRecipientsRestrictions
Source§fn default() -> NotificationRecipientsRestrictions
fn default() -> NotificationRecipientsRestrictions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationRecipientsRestrictions
impl<'de> Deserialize<'de> for NotificationRecipientsRestrictions
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
Source§impl PartialEq for NotificationRecipientsRestrictions
impl PartialEq for NotificationRecipientsRestrictions
Source§fn eq(&self, other: &NotificationRecipientsRestrictions) -> bool
fn eq(&self, other: &NotificationRecipientsRestrictions) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for NotificationRecipientsRestrictions
Auto Trait Implementations§
impl Freeze for NotificationRecipientsRestrictions
impl RefUnwindSafe for NotificationRecipientsRestrictions
impl Send for NotificationRecipientsRestrictions
impl Sync for NotificationRecipientsRestrictions
impl Unpin for NotificationRecipientsRestrictions
impl UnwindSafe for NotificationRecipientsRestrictions
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