pub struct HookRule {
pub id: Option<String>,
pub hotkey: String,
pub method: HttpMethod,
pub url: String,
pub body: Option<String>,
pub enabled: bool,
}Expand description
A mapping from a global shortcut to a webhook endpoint.
Fields§
§id: Option<String>None when created on the client; a Uuid is assigned server-side.
hotkey: StringExample: "Ctrl+Shift+F".
method: HttpMethod§url: String§body: Option<String>Optional JSON request body.
enabled: boolWhether the rule is active. Default: true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HookRule
impl<'de> Deserialize<'de> for HookRule
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 Eq for HookRule
impl StructuralPartialEq for HookRule
Auto Trait Implementations§
impl Freeze for HookRule
impl RefUnwindSafe for HookRule
impl Send for HookRule
impl Sync for HookRule
impl Unpin for HookRule
impl UnwindSafe for HookRule
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