pub struct RealmAuthenticationMethod { /* private fields */ }Expand description
Represents the properties of an authentication method for the organization - its enabled status and availability for use by the organization.
Modified from openapi-generator-cli output:
$ openapi-generator-cli generate -g rust -i ./zerver/openapi/zulip.yaml -o zulip-openapi --skip-validate-spec/*
* Zulip REST API
*
* Powerful open source group chat
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/See zerver/openapi/zulip.yaml for the original OpenAPI configuration.
Configuration slightly modified to work with the Rust generator of openapi-generator-cli.
Implementations§
Source§impl RealmAuthenticationMethod
impl RealmAuthenticationMethod
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RealmAuthenticationMethod.
Source§impl RealmAuthenticationMethod
impl RealmAuthenticationMethod
Sourcepub const fn enabled(&self) -> Option<bool>
pub const fn enabled(&self) -> Option<bool>
Gets the RealmAuthenticationMethod enabled.
Boolean describing whether the authentication method (i.e. its key) is enabled in this organization.
Sourcepub fn set_enabled(&mut self, val: bool)
pub fn set_enabled(&mut self, val: bool)
Sets the RealmAuthenticationMethod enabled.
Boolean describing whether the authentication method (i.e. its key) is enabled in this organization.
Sourcepub fn unset_enabled(&mut self) -> Option<bool>
pub fn unset_enabled(&mut self) -> Option<bool>
Unsets the RealmAuthenticationMethod enabled.
Boolean describing whether the authentication method (i.e. its key) is enabled in this organization.
Sourcepub fn with_enabled(self, val: bool) -> Self
pub fn with_enabled(self, val: bool) -> Self
Builder function that sets the RealmAuthenticationMethod enabled.
Boolean describing whether the authentication method (i.e. its key) is enabled in this organization.
Sourcepub const fn available(&self) -> Option<bool>
pub const fn available(&self) -> Option<bool>
Gets the RealmAuthenticationMethod available.
Boolean describing whether the authentication method is available for use. If false, the organization is not eligible to enable the authentication method.
Sourcepub fn set_available(&mut self, val: bool)
pub fn set_available(&mut self, val: bool)
Sets the RealmAuthenticationMethod available.
Boolean describing whether the authentication method is available for use. If false, the organization is not eligible to enable the authentication method.
Sourcepub fn unset_available(&mut self) -> Option<bool>
pub fn unset_available(&mut self) -> Option<bool>
Unsets the RealmAuthenticationMethod available.
Boolean describing whether the authentication method is available for use. If false, the organization is not eligible to enable the authentication method.
Sourcepub fn with_available(self, val: bool) -> Self
pub fn with_available(self, val: bool) -> Self
Builder function that sets the RealmAuthenticationMethod available.
Boolean describing whether the authentication method is available for use. If false, the organization is not eligible to enable the authentication method.
Source§impl RealmAuthenticationMethod
impl RealmAuthenticationMethod
Gets the RealmAuthenticationMethod unavailable_reason.
Reason why the authentication method is unavailable.
This field is optional and is only present when ‘available’ is false.
Sets the RealmAuthenticationMethod unavailable_reason.
Reason why the authentication method is unavailable.
This field is optional and is only present when ‘available’ is false.
Unsets the RealmAuthenticationMethod unavailable_reason.
Reason why the authentication method is unavailable.
This field is optional and is only present when ‘available’ is false.
Builder function that sets the RealmAuthenticationMethod unavailable_reason.
Reason why the authentication method is unavailable.
This field is optional and is only present when ‘available’ is false.