pub struct RealmDomain { /* private fields */ }Expand description
Represents details of the newly added domain.
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 RealmDomain
impl RealmDomain
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RealmDomain.
Source§impl RealmDomain
impl RealmDomain
Sourcepub fn domain(&self) -> Option<&str>
pub fn domain(&self) -> Option<&str>
Gets the RealmDomain domain.
The new allowed domain.
Sourcepub fn set_domain<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_domain<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmDomain domain.
The new allowed domain.
Sourcepub fn unset_domain(&mut self) -> Option<String>
pub fn unset_domain(&mut self) -> Option<String>
Unsets the RealmDomain domain.
The new allowed domain.
Sourcepub fn with_domain<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_domain<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmDomain domain.
The new allowed domain.
Source§impl RealmDomain
impl RealmDomain
Sourcepub const fn allow_subdomains(&self) -> Option<bool>
pub const fn allow_subdomains(&self) -> Option<bool>
Gets the RealmDomain allow_subdomains.
Whether subdomains are allowed for this domain.
Sourcepub fn set_allow_subdomains(&mut self, val: bool)
pub fn set_allow_subdomains(&mut self, val: bool)
Sets the RealmDomain allow_subdomains.
Whether subdomains are allowed for this domain.
Sourcepub fn unset_allow_subdomains(&mut self) -> Option<bool>
pub fn unset_allow_subdomains(&mut self) -> Option<bool>
Unsets the RealmDomain allow_subdomains.
Whether subdomains are allowed for this domain.
Sourcepub fn with_allow_subdomains(self, val: bool) -> Self
pub fn with_allow_subdomains(self, val: bool) -> Self
Builder function that sets the RealmDomain allow_subdomains.
Whether subdomains are allowed for this domain.