pub struct ServiceInfo {
pub name: String,
pub version: String,
pub description: String,
pub webhook_url_format: String,
pub supports_embeds: bool,
pub max_content_length: usize,
pub features: Vec<String>,
pub rate_limit_retry_after: Option<Duration>,
pub documentation_url: Option<String>,
pub icon_url: Option<String>,
pub platforms: Vec<Platform>,
}Expand description
Metadata about a webhook service (Discord, Slack, etc.).
Fields§
§name: StringService name (e.g., “discord”, “slack”)
version: StringService version
description: StringHuman-readable description
webhook_url_format: StringURL format template
supports_embeds: boolWhether the service supports rich embeds
max_content_length: usizeMaximum content length in characters
features: Vec<String>List of supported features
rate_limit_retry_after: Option<Duration>Recommended retry delay when rate limited
documentation_url: Option<String>Link to service documentation
icon_url: Option<String>URL to service icon
platforms: Vec<Platform>Supported platforms
Trait Implementations§
Source§impl Clone for ServiceInfo
impl Clone for ServiceInfo
Source§impl Debug for ServiceInfo
impl Debug for ServiceInfo
Source§impl<'de> Deserialize<'de> for ServiceInfo
impl<'de> Deserialize<'de> for ServiceInfo
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
Auto Trait Implementations§
impl Freeze for ServiceInfo
impl RefUnwindSafe for ServiceInfo
impl Send for ServiceInfo
impl Sync for ServiceInfo
impl Unpin for ServiceInfo
impl UnsafeUnpin for ServiceInfo
impl UnwindSafe for ServiceInfo
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