pub struct RealmLinkifier { /* private fields */ }Expand description
Represents the realm linkifier list item.
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 RealmLinkifier
impl RealmLinkifier
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new RealmLinkifier.
Source§impl RealmLinkifier
impl RealmLinkifier
Sourcepub fn pattern(&self) -> Option<&str>
pub fn pattern(&self) -> Option<&str>
Gets the RealmLinkifier pattern.
The Python regular expression pattern which represents the pattern that should be linkified on matching.
Sourcepub fn set_pattern<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_pattern<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmLinkifier pattern.
The Python regular expression pattern which represents the pattern that should be linkified on matching.
Sourcepub fn unset_pattern(&mut self) -> Option<String>
pub fn unset_pattern(&mut self) -> Option<String>
Unsets the RealmLinkifier pattern.
The Python regular expression pattern which represents the pattern that should be linkified on matching.
Sourcepub fn with_pattern<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_pattern<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmLinkifier pattern.
The Python regular expression pattern which represents the pattern that should be linkified on matching.
Sourcepub fn url_template(&self) -> Option<&str>
pub fn url_template(&self) -> Option<&str>
Gets the RealmLinkifier url_template.
The RFC 6570 compliant URL template with which the pattern matching string should be linkified.
Changes: New in Zulip 7.0 (feature level 176). This replaced url_format, which contained a URL format string.
Sourcepub fn set_url_template<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_url_template<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the RealmLinkifier url_template.
The RFC 6570 compliant URL template with which the pattern matching string should be linkified.
Changes: New in Zulip 7.0 (feature level 176). This replaced url_format, which contained a URL format string.
Sourcepub fn unset_url_template(&mut self) -> Option<String>
pub fn unset_url_template(&mut self) -> Option<String>
Unsets the RealmLinkifier url_template.
The RFC 6570 compliant URL template with which the pattern matching string should be linkified.
Changes: New in Zulip 7.0 (feature level 176). This replaced url_format, which contained a URL format string.
Sourcepub fn with_url_template<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_url_template<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the RealmLinkifier url_template.
The RFC 6570 compliant URL template with which the pattern matching string should be linkified.
Changes: New in Zulip 7.0 (feature level 176). This replaced url_format, which contained a URL format string.
Source§impl RealmLinkifier
impl RealmLinkifier
Sourcepub const fn id(&self) -> Option<u64>
pub const fn id(&self) -> Option<u64>
Gets the RealmLinkifier id.
The ID of the linkifier.
Sourcepub fn set_id(&mut self, val: u64)
pub fn set_id(&mut self, val: u64)
Sets the RealmLinkifier id.
The ID of the linkifier.
Sourcepub fn unset_id(&mut self) -> Option<u64>
pub fn unset_id(&mut self) -> Option<u64>
Unsets the RealmLinkifier id.
The ID of the linkifier.
Sourcepub fn with_id(self, val: u64) -> Self
pub fn with_id(self, val: u64) -> Self
Builder function that sets the RealmLinkifier id.
The ID of the linkifier.