pub struct RealmDefaultExternalAccount { /* private fields */ }Expand description
Represents the details of the default external account provider with the name of the website as the key.
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 RealmDefaultExternalAccount
impl RealmDefaultExternalAccount
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RealmDefaultExternalAccount.
Source§impl RealmDefaultExternalAccount
impl RealmDefaultExternalAccount
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
Gets the RealmDefaultExternalAccount name.
The name of the external account provider
Sourcepub fn set_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_name<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmDefaultExternalAccount name.
The name of the external account provider
Sourcepub fn unset_name(&mut self) -> Option<String>
pub fn unset_name(&mut self) -> Option<String>
Unsets the RealmDefaultExternalAccount name.
The name of the external account provider
Sourcepub fn with_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_name<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmDefaultExternalAccount name.
The name of the external account provider
Sourcepub fn text(&self) -> Option<&str>
pub fn text(&self) -> Option<&str>
Gets the RealmDefaultExternalAccount text.
The text describing the external account.
Sourcepub fn set_text<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_text<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmDefaultExternalAccount text.
The text describing the external account.
Sourcepub fn unset_text(&mut self) -> Option<String>
pub fn unset_text(&mut self) -> Option<String>
Unsets the RealmDefaultExternalAccount text.
The text describing the external account.
Sourcepub fn with_text<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_text<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmDefaultExternalAccount text.
The text describing the external account.
Sourcepub fn hint(&self) -> Option<&str>
pub fn hint(&self) -> Option<&str>
Gets the RealmDefaultExternalAccount hint.
The help text to be displayed for the custom profile field in user-facing settings UI for configuring custom profile fields for this account.
Sourcepub fn set_hint<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_hint<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmDefaultExternalAccount hint.
The help text to be displayed for the custom profile field in user-facing settings UI for configuring custom profile fields for this account.
Sourcepub fn unset_hint(&mut self) -> Option<String>
pub fn unset_hint(&mut self) -> Option<String>
Unsets the RealmDefaultExternalAccount hint.
The help text to be displayed for the custom profile field in user-facing settings UI for configuring custom profile fields for this account.
Sourcepub fn with_hint<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_hint<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmDefaultExternalAccount hint.
The help text to be displayed for the custom profile field in user-facing settings UI for configuring custom profile fields for this account.
Sourcepub fn url_pattern(&self) -> Option<&str>
pub fn url_pattern(&self) -> Option<&str>
Gets the RealmDefaultExternalAccount url_pattern.
The regex pattern of the URL of a profile page on the external site.
Sourcepub fn set_url_pattern<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_url_pattern<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmDefaultExternalAccount url_pattern.
The regex pattern of the URL of a profile page on the external site.
Sourcepub fn unset_url_pattern(&mut self) -> Option<String>
pub fn unset_url_pattern(&mut self) -> Option<String>
Unsets the RealmDefaultExternalAccount url_pattern.
The regex pattern of the URL of a profile page on the external site.
Sourcepub fn with_url_pattern<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_url_pattern<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmDefaultExternalAccount url_pattern.
The regex pattern of the URL of a profile page on the external site.