pub struct BotServiceOutgoingWebhook {
pub base_url: Option<String>,
pub token: Option<String>,
pub interface: Option<OutgoingWebhookInterface>,
}Expand description
Represents when the bot is an outgoing webhook.
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.
Fields§
§base_url: Option<String>The URL the outgoing webhook is configured to post to.
token: Option<String>A unique token that the third-party service can use to confirm that the request is indeed coming from Zulip.
interface: Option<OutgoingWebhookInterface>An integer indicating what format requests are posted in: - 1 = Zulip’s native outgoing webhook format. - 2 = Emulate the Slack outgoing webhook format.
Implementations§
Trait Implementations§
Source§impl Clone for BotServiceOutgoingWebhook
impl Clone for BotServiceOutgoingWebhook
Source§impl Debug for BotServiceOutgoingWebhook
impl Debug for BotServiceOutgoingWebhook
Source§impl Default for BotServiceOutgoingWebhook
impl Default for BotServiceOutgoingWebhook
Source§impl<'de> Deserialize<'de> for BotServiceOutgoingWebhook
impl<'de> Deserialize<'de> for BotServiceOutgoingWebhook
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for BotServiceOutgoingWebhook
Auto Trait Implementations§
impl Freeze for BotServiceOutgoingWebhook
impl RefUnwindSafe for BotServiceOutgoingWebhook
impl Send for BotServiceOutgoingWebhook
impl Sync for BotServiceOutgoingWebhook
impl Unpin for BotServiceOutgoingWebhook
impl UnsafeUnpin for BotServiceOutgoingWebhook
impl UnwindSafe for BotServiceOutgoingWebhook
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more