pub struct WebHookLoader { /* private fields */ }Implementations§
Source§impl WebHookLoader
impl WebHookLoader
pub fn new(config_path: &str) -> Result<Self, WebHookError>
pub fn list_hooks(&self) -> Result<Vec<String>, WebHookError>
pub async fn fire_hook_result(&self, name: &str) -> Result<(), WebHookError>
Trait Implementations§
Source§impl Clone for WebHookLoader
impl Clone for WebHookLoader
Source§fn clone(&self) -> WebHookLoader
fn clone(&self) -> WebHookLoader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WebHookLoader
impl RefUnwindSafe for WebHookLoader
impl Send for WebHookLoader
impl Sync for WebHookLoader
impl Unpin for WebHookLoader
impl UnsafeUnpin for WebHookLoader
impl UnwindSafe for WebHookLoader
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