pub struct WebhookUrlOption { /* private fields */ }Expand description
Represents an optional URL parameter options for the incoming webhook integration.
This is an unstable API expected to be used only by the Zulip web app. Please discuss in chat.zulip.org before using it.
Changes: New in Zulip 11.0 (feature level 403). Previously, these optional URL parameter options were included in the config_options object.
Implementations§
Source§impl WebhookUrlOption
impl WebhookUrlOption
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new WebhookUrlOption.
Source§impl WebhookUrlOption
impl WebhookUrlOption
Sourcepub fn key(&self) -> Option<&str>
pub fn key(&self) -> Option<&str>
Gets the WebhookUrlOption key.
The parameter variable to encode the users input for this option in the integrations webhook URL.
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 WebhookUrlOption key.
The parameter variable to encode the users input for this option in the integrations webhook URL.
Sourcepub fn unset_key(&mut self) -> Option<String>
pub fn unset_key(&mut self) -> Option<String>
Unsets the WebhookUrlOption key.
The parameter variable to encode the users input for this option in the integrations webhook URL.
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 WebhookUrlOption key.
The parameter variable to encode the users input for this option in the integrations webhook URL.
Sourcepub fn label(&self) -> Option<&str>
pub fn label(&self) -> Option<&str>
Gets the WebhookUrlOption label.
A human-readable label of the url 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 WebhookUrlOption label.
A human-readable label of the url option.
Sourcepub fn unset_label(&mut self) -> Option<String>
pub fn unset_label(&mut self) -> Option<String>
Unsets the WebhookUrlOption label.
A human-readable label of the url 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 WebhookUrlOption label.
A human-readable label of the url option.
Sourcepub fn validator(&self) -> Option<&str>
pub fn validator(&self) -> Option<&str>
Gets the WebhookUrlOption 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 WebhookUrlOption 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 WebhookUrlOption 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 WebhookUrlOption validator.
The name of the validator function for the configuration option.