pub struct WebhookConfigOption { /* private fields */ }Expand description
Represents webhook config option details.
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 WebhookConfigOption
impl WebhookConfigOption
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new WebhookConfigOption.
Source§impl WebhookConfigOption
impl WebhookConfigOption
Sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
Gets the WebhookConfigOption key.
A key for the configuration option.
Sourcepub fn set_key<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_key<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the WebhookConfigOption key.
A key for the configuration option.
Sourcepub fn unset_key(&mut self) -> Option<String>
pub fn unset_key(&mut self) -> Option<String>
Unsets the WebhookConfigOption key.
A key for the configuration option.
Sourcepub fn with_key<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_key<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the WebhookConfigOption key.
A key for the configuration option.
Sourcepub fn label(&self) -> Option<&str>
pub fn label(&self) -> Option<&str>
Gets the WebhookConfigOption label.
A human-readable label of the configuration option.
Sourcepub fn set_label<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_label<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the WebhookConfigOption label.
A human-readable label of the configuration option.
Sourcepub fn unset_label(&mut self) -> Option<String>
pub fn unset_label(&mut self) -> Option<String>
Unsets the WebhookConfigOption label.
A human-readable label of the configuration option.
Sourcepub fn with_label<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_label<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the WebhookConfigOption label.
A human-readable label of the configuration option.
Sourcepub fn validator(&self) -> Option<&str>
pub fn validator(&self) -> Option<&str>
Gets the WebhookConfigOption validator.
The name of the validator function for the configuration option.
Sourcepub fn set_validator<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_validator<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the WebhookConfigOption validator.
The name of the validator function for the configuration option.
Sourcepub fn unset_validator(&mut self) -> Option<String>
pub fn unset_validator(&mut self) -> Option<String>
Unsets the WebhookConfigOption validator.
The name of the validator function for the configuration option.
Sourcepub fn with_validator<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_validator<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the WebhookConfigOption validator.
The name of the validator function for the configuration option.