pub struct Apiv1WorkspaceGeneralSetting {
pub disallow_user_registration: Option<bool>,
pub disallow_password_auth: Option<bool>,
pub additional_script: Option<String>,
pub additional_style: Option<String>,
pub custom_profile: Option<Box<Apiv1WorkspaceCustomProfile>>,
pub week_start_day_offset: Option<i32>,
pub disallow_change_username: Option<bool>,
pub disallow_change_nickname: Option<bool>,
}
Fields§
§disallow_user_registration: Option<bool>
disallow_user_registration disallows user registration.
disallow_password_auth: Option<bool>
disallow_password_auth disallows password authentication.
additional_script: Option<String>
additional_script is the additional script.
additional_style: Option<String>
additional_style is the additional style.
custom_profile: Option<Box<Apiv1WorkspaceCustomProfile>>
§week_start_day_offset: Option<i32>
week_start_day_offset is the week start day offset from Sunday. 0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday Default is Sunday.
disallow_change_username: Option<bool>
disallow_change_username disallows changing username.
disallow_change_nickname: Option<bool>
disallow_change_nickname disallows changing nickname.
Implementations§
Source§impl Apiv1WorkspaceGeneralSetting
impl Apiv1WorkspaceGeneralSetting
pub fn new() -> Apiv1WorkspaceGeneralSetting
Trait Implementations§
Source§impl Clone for Apiv1WorkspaceGeneralSetting
impl Clone for Apiv1WorkspaceGeneralSetting
Source§fn clone(&self) -> Apiv1WorkspaceGeneralSetting
fn clone(&self) -> Apiv1WorkspaceGeneralSetting
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 Debug for Apiv1WorkspaceGeneralSetting
impl Debug for Apiv1WorkspaceGeneralSetting
Source§impl Default for Apiv1WorkspaceGeneralSetting
impl Default for Apiv1WorkspaceGeneralSetting
Source§fn default() -> Apiv1WorkspaceGeneralSetting
fn default() -> Apiv1WorkspaceGeneralSetting
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Apiv1WorkspaceGeneralSetting
impl<'de> Deserialize<'de> for Apiv1WorkspaceGeneralSetting
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 Apiv1WorkspaceGeneralSetting
impl PartialEq for Apiv1WorkspaceGeneralSetting
Source§fn eq(&self, other: &Apiv1WorkspaceGeneralSetting) -> bool
fn eq(&self, other: &Apiv1WorkspaceGeneralSetting) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for Apiv1WorkspaceGeneralSetting
Auto Trait Implementations§
impl Freeze for Apiv1WorkspaceGeneralSetting
impl RefUnwindSafe for Apiv1WorkspaceGeneralSetting
impl Send for Apiv1WorkspaceGeneralSetting
impl Sync for Apiv1WorkspaceGeneralSetting
impl Unpin for Apiv1WorkspaceGeneralSetting
impl UnwindSafe for Apiv1WorkspaceGeneralSetting
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