pub struct ServerSupportedPermissionSetting { /* private fields */ }Expand description
Represents metadata detailing the valid values for permission settings that use group-setting values.
Clients should use these data as explained in the main documentation to determine what values to present as possible values for these settings in UI components.
Changes: Before Zulip 10.0 (feature level 326), this part of the response had a documented-as-unstable format not suitable for general client use, and should be ignored.
New in Zulip 8.0 (feature level 221).
Implementations§
Source§impl ServerSupportedPermissionSetting
impl ServerSupportedPermissionSetting
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ServerSupportedPermissionSetting.
Source§impl ServerSupportedPermissionSetting
impl ServerSupportedPermissionSetting
Sourcepub fn realm(&self) -> Option<&HashMap<String, GroupPermissionSetting>>
pub fn realm(&self) -> Option<&HashMap<String, GroupPermissionSetting>>
Gets the ServerSupportedPermissionSetting realm.
Configuration for realm level group permission settings.
Sourcepub fn set_realm(&mut self, val: HashMap<String, GroupPermissionSetting>)
pub fn set_realm(&mut self, val: HashMap<String, GroupPermissionSetting>)
Sets the ServerSupportedPermissionSetting realm.
Configuration for realm level group permission settings.
Sourcepub fn unset_realm(&mut self) -> Option<HashMap<String, GroupPermissionSetting>>
pub fn unset_realm(&mut self) -> Option<HashMap<String, GroupPermissionSetting>>
Unsets the ServerSupportedPermissionSetting realm.
Configuration for realm level group permission settings.
Sourcepub fn with_realm(self, val: HashMap<String, GroupPermissionSetting>) -> Self
pub fn with_realm(self, val: HashMap<String, GroupPermissionSetting>) -> Self
Builder function that sets the ServerSupportedPermissionSetting realm.
Configuration for realm level group permission settings.
Sourcepub fn stream(&self) -> Option<&HashMap<String, GroupPermissionSetting>>
pub fn stream(&self) -> Option<&HashMap<String, GroupPermissionSetting>>
Gets the ServerSupportedPermissionSetting stream.
Configuration for channel level group permission settings.
Sourcepub fn set_stream(&mut self, val: HashMap<String, GroupPermissionSetting>)
pub fn set_stream(&mut self, val: HashMap<String, GroupPermissionSetting>)
Sets the ServerSupportedPermissionSetting stream.
Configuration for channel level group permission settings.
Sourcepub fn unset_stream(
&mut self,
) -> Option<HashMap<String, GroupPermissionSetting>>
pub fn unset_stream( &mut self, ) -> Option<HashMap<String, GroupPermissionSetting>>
Unsets the ServerSupportedPermissionSetting stream.
Configuration for channel level group permission settings.
Sourcepub fn with_stream(self, val: HashMap<String, GroupPermissionSetting>) -> Self
pub fn with_stream(self, val: HashMap<String, GroupPermissionSetting>) -> Self
Builder function that sets the ServerSupportedPermissionSetting stream.
Configuration for channel level group permission settings.
Sourcepub fn group(&self) -> Option<&HashMap<String, GroupPermissionSetting>>
pub fn group(&self) -> Option<&HashMap<String, GroupPermissionSetting>>
Gets the ServerSupportedPermissionSetting group.
Configuration for group level group permission settings.
Sourcepub fn set_group(&mut self, val: HashMap<String, GroupPermissionSetting>)
pub fn set_group(&mut self, val: HashMap<String, GroupPermissionSetting>)
Sets the ServerSupportedPermissionSetting group.
Configuration for group level group permission settings.
Sourcepub fn unset_group(&mut self) -> Option<HashMap<String, GroupPermissionSetting>>
pub fn unset_group(&mut self) -> Option<HashMap<String, GroupPermissionSetting>>
Unsets the ServerSupportedPermissionSetting group.
Configuration for group level group permission settings.
Sourcepub fn with_group(self, val: HashMap<String, GroupPermissionSetting>) -> Self
pub fn with_group(self, val: HashMap<String, GroupPermissionSetting>) -> Self
Builder function that sets the ServerSupportedPermissionSetting group.
Configuration for group level group permission settings.