Struct pshovr::PushoverClient
source · pub struct PushoverClient { /* private fields */ }
Implementations§
source§impl PushoverClient
impl PushoverClient
pub fn new(token: String) -> PushoverClient
pub fn build_notification<'a>( &'a self, user: &'a str, message: &'a str ) -> Notification<'a>
pub fn send<'a>( &'a self, notification: &'a Notification<'_> ) -> Result<Response, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PushoverClient
impl !RefUnwindSafe for PushoverClient
impl Send for PushoverClient
impl Sync for PushoverClient
impl Unpin for PushoverClient
impl !UnwindSafe for PushoverClient
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