pub struct BaleNotifier { /* private fields */ }Implementations§
Source§impl BaleNotifier
impl BaleNotifier
pub fn new(bot_token: String, chat_id: String) -> Result<Self>
pub fn with_base_url( base_url: String, bot_token: String, chat_id: String, ) -> Result<Self>
pub fn format_message(event: &AlertEvent) -> String
Trait Implementations§
Source§impl Notifier for BaleNotifier
impl Notifier for BaleNotifier
Auto Trait Implementations§
impl !RefUnwindSafe for BaleNotifier
impl !UnwindSafe for BaleNotifier
impl Forget for BaleNotifier
impl Freeze for BaleNotifierwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<ClientRef> is !null: Freeze,
PhantomData<ArcInner<ClientRef>>: Freeze,
impl Move for BaleNotifier
impl Send for BaleNotifier
impl Sync for BaleNotifier
impl Unpin for BaleNotifier
impl UnsafeUnpin for BaleNotifierwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<ClientRef> is !null: UnsafeUnpin,
PhantomData<ArcInner<ClientRef>>: UnsafeUnpin,
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