Change return type (#5)
Release Tagging / release (push) Successful in 29s
swoosh Build / Check (push) Successful in 48s
swoosh Build / Rustfmt (push) Successful in 27s
swoosh Build / Clippy (push) Successful in 28s
swoosh Build / Test Suite (push) Successful in 1m22s
swoosh Build / build (push) Successful in 27s
Release Tagging / release (pull_request) Successful in 29s
swoosh Build / Check (pull_request) Successful in 1m20s
swoosh Build / Test Suite (pull_request) Successful in 1m16s
swoosh Build / Rustfmt (pull_request) Successful in 26s
swoosh Build / Clippy (pull_request) Successful in 1m15s
swoosh Build / build (pull_request) Successful in 1m57s

Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
2026-06-04 21:11:40 -04:00
parent 8dd26cee44
commit ab01daafea
3 changed files with 9 additions and 2 deletions
Generated
+1 -1
View File
@@ -1573,7 +1573,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "swoosh"
version = "0.3.0"
version = "0.3.1"
dependencies = [
"base64-ng",
"const_format",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "swoosh"
version = "0.3.0"
version = "0.3.1"
edition = "2024"
rust-version = "1.95"
description = "Library to send text messages"
+7
View File
@@ -1,5 +1,12 @@
pub mod types;
pub async fn response_to_json(response: reqwest::Response) -> serde_json::Value {
match response.json().await {
Ok(json_body) => json_body,
Err(_err) => serde_json::Value::Null,
}
}
pub async fn send_mssage(
msg: &textsender_models::message::Message,
contact: &textsender_models::contact::Contact,