pub struct UserPermissions {
pub pub_allow: Vec<String>,
pub pub_deny: Vec<String>,
pub sub_allow: Vec<String>,
pub sub_deny: Vec<String>,
}Expand description
Publish / subscribe permission lists for a user (empty = unrestricted within the account).
Fields§
§pub_allow: Vec<String>Subjects the user may publish to (empty = all).
pub_deny: Vec<String>Subjects the user may not publish to.
sub_allow: Vec<String>Subjects the user may subscribe to (empty = all).
sub_deny: Vec<String>Subjects the user may not subscribe to.
Trait Implementations§
Source§impl Clone for UserPermissions
impl Clone for UserPermissions
Source§fn clone(&self) -> UserPermissions
fn clone(&self) -> UserPermissions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UserPermissions
impl Default for UserPermissions
Source§fn default() -> UserPermissions
fn default() -> UserPermissions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserPermissions
impl RefUnwindSafe for UserPermissions
impl Send for UserPermissions
impl Sync for UserPermissions
impl Unpin for UserPermissions
impl UnsafeUnpin for UserPermissions
impl UnwindSafe for UserPermissions
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