# rust_webhook
The 'rustwebhook' crate is a Rust library that provides functionality for sending webhooks using the 'reqwest' and 'serdejson' libraries. It allows you to easily send POST requests with JSON payloads to webhook endpoints.
Add the crate as a dependency in your Cargo.toml file:
toml
[dependencies]
rust_webhook = { version = "0.1.4" }
reqwest = "0.11"
serde_json = "1.0"
```rust use rust_webhook::DiscordWebhook;
async fn main() { let webhook = DiscordWebhook::new("YOURWEBHOOKURL"); let content = "Hello, webhook!";
webhook.send(content).await;
} ```