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
- Async
Gotify - Asynchronous interface to the Gotify API.
- Client
- Error
- Gotify
- Health
- Message
- Paged
Messages - Paging
- Plugin
Conf - Sync
Gotify - Synchronous interface to the Gotify API.
- User
- User
Pass - User
With Pass - Version
Info