pub enum WebhookError {
PermissionDenied,
InternalError(String),
}Expand description
Creates a webhook that can be used to integrate with webhook driven apis. When the created url is called with a post request, the provided promise-id is completed with the body of the post request. Note the following behaviours:
- Only agents whoose agent types are currently deployed via an http api are allowed to create a webhook. Calling this function while the agent is not deployed via an http api will trap.
- Only the agent type that created the promise is allowed to create a webhook for it. Using this host function from a different agent type will trap.
Variants§
Trait Implementations§
Source§impl Clone for WebhookError
impl Clone for WebhookError
Source§impl Debug for WebhookError
impl Debug for WebhookError
Source§impl Display for WebhookError
impl Display for WebhookError
Source§impl Error for WebhookError
impl Error for WebhookError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for WebhookError
impl RefUnwindSafe for WebhookError
impl Send for WebhookError
impl Sync for WebhookError
impl Unpin for WebhookError
impl UnsafeUnpin for WebhookError
impl UnwindSafe for WebhookError
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