Crate gotify_rs

Source
Expand description

Gotify-rs is a library which wraps the Gotify API. There are two interfaces which can be used:

  • SyncGotify which is a synchronous wrapper of the Gotify API.
  • AsyncGotify which is an asynchronous wrapper of the Gotify API.

An example of using the synchronous interface to create an application:

let gotify = SyncGetify::new("https://my.gotify.server/", "a_client_token", None);
let app = gotify.create_application("App name".to_string(), "App description".to_string()).expect("Failed to create application");
gotify.gotify.config(None, &app.token, None);
let message = gotify.create_message("Hello world!".to_string(), Some(0), "Test message".to_string()).expect("Failed to create message");

Structsยง

Application
AsyncGotify
Asynchronous interface to the Gotify API.
Client
Error
Gotify
Health
Message
PagedMessages
Paging
PluginConf
SyncGotify
Synchronous interface to the Gotify API.
User
UserPass
UserWithPass
VersionInfo