[−][src]Crate tailscale_api
A rust library for interacting with the Tailscale API.
For more information, the Tailscale API is still in beta. Once the docs are online, we need to link to them.
Example:
use serde::{Deserialize, Serialize}; use tailscale_api::Tailscale; async fn get_devices() { // Initialize the Tailscale client. let tailscale = Tailscale::new_from_env(); // List the devices. let devices = tailscale.list_devices().await.unwrap(); println!("{:?}", devices); }
Structs
APIError | Error type returned by our library. |
APIResponse | The data type for an API response. |
Device | The data type for a device. |
Tailscale | Entrypoint for interacting with the Tailscale API. |